In this article we are going to see the difference between the asp.net MVC and asp.net Webform, Most of the time many have clarifications on basic things but when try to really find the difference it is hard for them to tell all the things. Asp.net MVC is a template which follows the MVC format. Ok, Let we see the difference.
ASP.Net MVC:
*************
ASP.Net Web form:
****************
ASP.Net MVC:
*************
- This follows the MVC pattern model (model, view, controller)
- View are loosely coupled, view and logic are kept separately
- Have partial views to make a commonly reused code separately.
- No state management techniques
- Route based url, url are mapped in to controllers and there actions instead of file.
- Not based on Physical file redirecting.
- Have Layout to have consistent look and feel.
ASP.Net Web form:
****************
- This follows the Event based model
- aspx page is tightly coupled with the code behind aspx.cs
- Have the User control for have commonly reused code.
- Have state management like session and View state
- Filename must be mention in the Url for mapping the physical file for request.
- Based on physical file redirecting.
- Have master pages to have consistent look and feel
From this article you can learn the difference between the ASP.NET MVC and Webform.
No comments:
Post a Comment