Careful consideration should be taken when building a Web application using either the ASP.NET MVC framework or the ASP.NET Web Forms model. MVC framework does not replace the Web Forms model therefore you can use either framework to build Web applications.
The following is a comparison of the advantages of both MVC framework and the Web Forms model use when building a Web site.
Advantages of MVC approach
ASP.NET MVC based framework advantages are as follows -
- MVC approach makes it easier to manage complexity by dividing an application into the Model, the View, and the Controller.
- MVC approach does not use view state or server-based forms. Thus making the MVC framework ideal for developers who require more control over the behavior of an application.
- MVC approach uses a Front Controller pattern. The Front Controller pattern processes Web application requests through a single controller thus enabling you to design applications supporting rich routing infrastructure.
- MVC approach provides better support for test-driven development (TDD).
- MVC approach works well for Web applications supported by large teams of developers. This approach also supports Web designers who require a high degree of control over the application behavior.
Advantages of Web Forms approach
Web Forms based framework advantages are as follows -
- Web Forms approach supports event model that preserves state over HTTP. This benefits Web application development like Line-of-Business. Web Forms-based application provides many events supported in hundreds of server controls.
- Web Forms approach uses a Page Controller pattern. This Page Controller pattern adds functionality to individual pages.
- Web Forms approach uses view state on server-based forms thus making state information management easier.
- Web Forms approach works well for small teams of Web developers and designers. This makes sure that a large number of components are available for rapid application development.
- When compared with MVC approach, Web Forms approach is less complex for application development. The components that is the Page class, controls, etc, are integrated closely and usually require less code than the MVC model.
No comments:
Post a Comment