Corey Coogan

Python, .Net, C#, ASP.NET MVC, Architecture and Design

  • Subscribe

  • Archives

  • Blog Stats

    • 110,056 hits
  • Meta

Posts Tagged ‘Server Controls’

Asp.Net MVC and Server Controls

Posted by coreycoogan on August 25, 2009


I’m involved on the fringe of an MVC project right now and the core group of developers have no experience in ASP.NET MVC.  This group is more experienced in traditional Web Forms development and didn’t take the time to learn anything about MVC and how it works.  Unfortunately, this led to some major problems.  I’d like to reiterate here for anyone who stumbles across this post one major lesson that this development team learned.
DON’T EVER USE SERVER CONTROLS AND VIEW STATE IN ASP.NET MVC.

Some controls may be work some of the time, but it’s best to just stay away.  If you are going to use ASP.NET MVC, then go all in.  Everything you want to do in Web Forms is possible in MVC, just in a different way.  Embrace the truth of web development!

Advertisements

Posted in ASP.NET, ASP.NET MVC | Tagged: , , , , , | 1 Comment »