13
shouts

ASP.NET MVC and the templated partial view (death to ASCX) : Jeffrey Palermo

published 250 days, 19 hours, 57 minutes ago posted by StevesSteves 251 days, 19 hours, 30 minutes ago
Thursday, June 04, 2009 11:35:11 AM GMT Wednesday, June 03, 2009 12:02:00 PM GMT

We are used to master pages and applying them to ASPX pages.  Then we pull small parts of the view into user controls or ASCX.  In ASP.NET MVC, we use ASCX files as partial views because the user control model is so baked into our thinking.

I propose that ASCX does not provide much benefit in ASP.NET MVC.  It’s usefulness may end with using the extension as a naming convention for the easy identification of partial views.  Beyond that, it’s pretty thin.

Consider the following scenario where only the AS...

category: ASP.NET | clicked: 65 | | source: jeffreypalermo.com | show counter code
tags: ASP.NET, ASP.NET MVC, ASPNETMVC