There are some differences between ASP.NET Web Form (ASPX.CS) and ASP.NET MVC application as given below:-
1.) Model :-
3.) State Management :-1.) Model :-
- ASP.NET Web Form uses traditional event driven model.
- While ASP.NET MVC application uses Pattern based model.
2.) Page Life Cycle :-
- ASP.NET Web Form follows a page life cycle concepts.
- ASP.NET MVC application has no page life cycle concepts.
- ASP.NET Web Form has some state management techniques such as session state,view state,cookies etc.
- ASP.NET MVC has no such state management techniques.
- ASP.NET Web Form uses web forms syntax .
- ASP.NET MVC uses some default customise syntax such as ASPX engine for MVC1 and MVC2 templates, and Razor engine for MVC3 , MVC4 and MVC5 templates.
5.) Control :-
- ASP.NET Web Form uses server controls on your web page.
- While ASP.NET MVC uses HTML Helpers for this purpose.
- ASP.NET Web Form uses Master pages for look and feel of the web page.
- ASP.NET MVC uses Layouts for look and feel of the web page.
- In ASP.NET Web Form, Automated testing is more complex.It does not supports Test driven Development(TDD) testing.
- ASP.NET MVC application supports Test driven Development(TDD). So here testing is quite simple.
- ASP.NET Web Form supports limited controls over html ,css ,java script etc.
- While ASP.NET MVC application provide full support over html ,css ,java script etc.
- ASP.NET Web Form is good for small level applications but little bad for large applications.It needs limited team size.
- ASP.NET MVC is good for large Enterprise level applications.It needs large team size .
- ASP.NET Web Form is a file based URLs. Means file names exist in URLs must have a physical existence in the application.
- ASP.NET MVC application uses URLs Routing concepts. Means URLs are separated in Controllers , actions and others.It is based on Controller, not on Physical file.
- ASP.NET Web Form does not follow open source concepts.
- While ASP.NET MVC application follow open source concepts.
- ASP.NET Web Form are tightly coupled models. Means Design and Logic's codes are present in one file( ASPX.CS ).
- While ASP.NET MVC are loosely coupled models. Means views and logic are loosely coupled because views and logic's are kept in separate file.
- ASP.NET Web form is strong data access model.it high weight application so it is not helpful to develop an interactive application.
- ASP.NET MVC is a light weight application .This is best to develop an interactive application.
0 comments:
Post a Comment