Friday, February 11, 2011

ASP.NET MVC 2


Playing on ASP.NET MVC 2.

First impression, it totally different from traditional ASP.NET Web Application. Every web form will have aspx, aspx.cs, aspx.resx. Now you have to tatally forget about this.

M stands for Model
Model means the data. The object, it could be mapped to the Entity or the entity itself will be the model.


V stands for View
View is the UI the interface with some dynamic script to isolate UI logic and keep it here.

C stands for Contraller
Controller controls the View(s). HomeController.About() is mapped to Abount.aspx. HomeController.Index() is mapped to Default.aspx. It all mapped in Global.asax.cs.

No comments:

Post a Comment