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…

Advertisements

~ by Luis Abreu on July 30, 2008.

2 Responses to “ASP.NET MVC: we need a declarative control model”

  1. Did you actually try that? Don”t see why it wouldn”t work.

  2. They do work…the idea of having new ones was clearing up the non-used stuff (viewstate, etc) and add some properties which make sense with MVC (for instance, having some sort of specify a route declaratively woudl be really great)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: