ASP.NET MVC Framework is another extension that has been added to .net 3.5, this framework allows developers to create ASP.NET projects using the MVC pattern (of course as the name suggests!).I took a look at it and it seems pretty easy to use. You can learn more about it here.
Just to give an idea about how easy controllers can be implemented, take a look at the code below...
public class CustomerController : Controller
{
[ControllerAction]
public void ListCustomers()
{
}
}
The CustomerController class extends the base class System.Web.MVC.Controller, this base class does most of the job.
For an example, when a request comes in the form www.mainsite.com/Customers/ListCustomers, the framwork automatically calls the above method , cool ne?
Comments
Post a Comment