Sunday 27 September 2015

Introduction to ASP.Net MVC


Introduction to ASP.Net MVC

ASP.NET MVC is a framework for building web applications that applies the general Model – View - Controller(MVC) pattern to the ASP.NET framework.
ASP.Net web application can be created in two different development models Web Forms and MVC (Model view Controller). ASP.NET MVC framework provides an alternative to the old ASP.NET Web Forms pattern for creating MVC-based Web applications.
ASP.Net MVC will not replace the old ASP.net Web forms development; it is one of the new development models. You have to decide when to use MVCor Web forms based on the pros and cons.
In case of ASP.Net web form development, unit testing the business logic is very difficult and extensibility of the application required a lot of re-work on the application code. These challenges are overcome by using ASP.MVC application.
Model:It retrieve the application data from Database and it also contain business logic to change the state mention by controller
View:Components that display the applications user interface (UI)
Controller:Components that handle user interaction and display the UI with help of Model data
Advantage:
  • Light weight framework
  • Enables Test Driven Development
  • URL based routing
  • No ViewState and PostBack events
  • Loosely Coupled application development
  • Provides clean separation of concerns(SoC
  • Integrated with existing features such as Master Pages, Security, and Authentication

No comments:

Post a Comment