Comments: (14)
Just curious about the _class that was used in the anonymous object to avoid a conflict with the class keyword. I tried _class using the beta of MVC and it kicked out '_class=...' in the markup. After a little digging around I found that @class works. Was there something in previous CTPs that handled _class that's been removed? Thanks! |
@John: I do beleive in earlier CTP's keywords could be avoided by _ character. |
One of the prototypes is around bringing some basic Ajax functionality - basically to get post-back-less partial rendering and some behavior-like extensions to associate with DOM elements - sort of like ASP.NET Ajax but in a manner that fits with the pattern around how controllers and views are written. I should say that eventually Ajax functionality will exist out-of-the-box, so you can think of this as an early experiment, and by no means complete. In the spirit of experimentation, feedback and suggestions are welcome. |
0  I'm just learning the MVC framework too so I'm not sure how off this is, but from what I understand you would have a form on a View such as Edit.aspx. This form would then post to the controller to another action method such as Update() passing in the contents of the form that you set in Edit.aspx as parameters. |
I’m just a wee bit confused, followed the instructions and made some custom fields in the beginning, but that didn’t work out, so i did a dumber down version, still didn’t work. Now that I can’t even get your version to work I know I’m doing something wrong :P |
Really nice feature for ASP.NET 4.0. Would there be perfromance hit for each incoming request? I can see that you have routing code inside Application_Start() event handler, which actually fires only once when ASP.NET application is started, so I think performance should not be an issue, what say ? Also can I have multiple routes.MapPageRoute() for different URLs inside RegisterRoutes() method ?
There is some performance overhead for URL routing - but in general it is pretty fast. The actual route registration is done only once at app startup time - the routetable is then cached and reused across multiple requests.
You can definitely map multiple routes - in fact as many as you need. |
|