Possible Duplicate:
Does anyone beside me just NOT get ASP.NET MVC?
I dont know ASP.NET very well ATM. I took a look at MVC 2 in 2010 beta2 and notice my host will not support it. Since my app is heavily backend base and a light interface i thought regular ASP.NET should do a find job.
In either case i find it extremely annoying to write
<div>
<% foreach(var link in Html.Encode(ViewData["Links"])) { %>
<a href="<%=link%>"><%=link%></a><br>
<% } %>
<div>
I find it a lot easier to use Response.Write or to return a string with the html inside a @”” string. This example is simplified, i have some fairly complex data to display. Am i missing something or should i write any complex html in my C# source code?
This is very similar to a question asked earlier that I answered at length:
Does anyone beside me just not get asp.net MVC?
Mine is the top answer as it was accepted. I’ll just leave the link rather than copying it all here but I strongly suggest that you look at it as I think it will address your questions and concerns.