Wednesday, 15 January 2014

Diffrence Between Asp.Net and Asp.Net MVC

Asp .Net 



  • There is no separation of concerns. Every page  has it's own controller  so both are tightly coupled

  • Due to coupled behavior, automated testing is really difficult.



  •  It follows a Page Life cycle.

  • Uses server-side controls as in Windows applications.

  • It uses a Page Controller pattern that adds functionality to individual page

  • It uses view state on server-based forms

  • It  follows Web Forms Syntax

  • Uses Page controller pattern approach for rendering layout. In this approach, every page has
  •  it' s own controller i.e. code-behind file that processes the request.

Asp.Net MVC

  • Uses Front Controller approach  .i.e ,a common controller for all pages, processes the requests.

  • View and Controller are neatly separate.

  • Test driven development is simple using this approach.

  •  It is stateless as that of the web so  there is no  viewstate.

  • There is  no Page Life cycle like WebForms.

  •  Knowledge of HTML, JavaScript and CSS is required.

0 comments:

Post a Comment