I'm new to MVC, and I notice that view pages can look pretty unpleasant with all the mixed script tags. Does it make sense to generate the HTML code in the method in the code of the code, and then just insert the string result of the method as one bit of the script?
For example: <div><%= GenerateTonsOfHTMLFromSomeIEnumerable() %></div>
<div><%= GenerateTonsOfHTMLFromSomeIEnumerable() %></div>
Does this contradict the MVC philosophy? Dumb for some other reason, such as performance? Does he have any virtues?
OK, do one more for the learning curve. I think I could find the answer to my question ...
ASP MVC , ( ASP.NET ). , html. , , :)
:
@Rajesh - !
.
Codebehind
"Rob Conery"
, . , , -...
, codebehind , viewengine, codebehind.
- , .
. codebehind. MVC Framework RC1 . , # , , HTML. - , .
, .
. .