ASP.NET MVC: we need a declarative control model
Yes, I’ve been asking this for some time now…in fact, this is the only thing I miss from the traditional ASP.NET Web Forms model. Those clear aspx pages, with really few <%%> crap (oopss, I mean tags) springled through out my pages – the only place I did need them was inside templates.
Notice that I’m not asking for viewstate or postback events. No, no, no! I don’t want that! What I want is to put something like this:
<div id=”mySpan” runat=”server”>Hello, world!</div>
And be able to access them from the codebehind page. This would lead to much cleaner pages…btw, and since 'I’m asking, I’d like to make it clear that I don’t want that ID based on container generation “thingy” either! Ok, now that I’ve made the complaint of the day, it’s time to go back to business…