Before moving forward we should have some Idea about the followings ...
ASP.NET :Asp.Net is an open source server side web application framework designed for web development to produce dynamic web pages.It was developed by Microsoft to allow programmers to build dynamic websites,web applications and web services.
MVC : MVC stands for Model-View-Controller. It is a software design pattern which was introduced in 1970s. MVC pattern forces a Separation of concerns , it means the user interface(View),business logic(Controller) and data access logic(Model) are decoupled from each other. As a result maintenance and testing of application become simpler and easier.
The Model View Controller pattern proposes three main components to be used in software development or we can say MVC design pattern splits an application into three main aspects: Model,View,Controller.
MODEL : The Model represents a set of classes that describes the business logic i.e. business model as well as data access operations i.e. data model.It also defines business rules for data, means how the data can be manipulated.
VIEW: The view represents the UI components like css,jQuery,html etc.It is only responsible for displaying or presenting the data which is received from the controller and if requirement comes then model data is also binded to UI .
ASP.NET :Asp.Net is an open source server side web application framework designed for web development to produce dynamic web pages.It was developed by Microsoft to allow programmers to build dynamic websites,web applications and web services.
MVC : MVC stands for Model-View-Controller. It is a software design pattern which was introduced in 1970s. MVC pattern forces a Separation of concerns , it means the user interface(View),business logic(Controller) and data access logic(Model) are decoupled from each other. As a result maintenance and testing of application become simpler and easier.
The Model View Controller pattern proposes three main components to be used in software development or we can say MVC design pattern splits an application into three main aspects: Model,View,Controller.
MODEL : The Model represents a set of classes that describes the business logic i.e. business model as well as data access operations i.e. data model.It also defines business rules for data, means how the data can be manipulated.
VIEW: The view represents the UI components like css,jQuery,html etc.It is only responsible for displaying or presenting the data which is received from the controller and if requirement comes then model data is also binded to UI .
CONTROLLER: The Controller is responsible for processing the incoming request. It receives input from users via the view , then process the user's data with the help of Model and passing the results back to View.It acts as the coordinator between the View and the Model.
ASP.NET MVC : ASP.NET MVC is an open source framework built on the top of Microsoft .NET Framework to develop web application that enables a clean separation of UI &code. ASP.NET MVC framework is the most customizable and extensible platform shipped by Microsoft. ASP.NET MVC is a lightweight and highly testable open source framework for building well designed web applications.
The View:The view is only responsible for displaying the data that is received from the controller as a result. It also responsible for transforming a model or models into UI which provide all the required business logic and validation to the view.By default, views are stored in the Views folder of an ASP.NET MVC application.
The Controller:The Controller in ASP.NET MVC, respond to HTTP requests and determine the action to take based upon the content of the incoming request. It receives input from users via the View, then process the user's data with the help of Model and passing the results back to the View. By default, controllers are stored in the Controllers folder an ASP.NET MVC application.
The Model:This layer contains simple objects or complex objects which are used to specify strongly-typed view. These objects are used to pass data from controller to strongly-typed view and vice versa. The classes for these objects can have specific validation rules which are defined by using data annotations. Typically, these classes have those properties which you want to display on corresponding view/page.By default, models are stored in the Models folder of an ASP.NET MVC application.
The Controller:The Controller in ASP.NET MVC, respond to HTTP requests and determine the action to take based upon the content of the incoming request. It receives input from users via the View, then process the user's data with the help of Model and passing the results back to the View. By default, controllers are stored in the Controllers folder an ASP.NET MVC application.
The Model:This layer contains simple objects or complex objects which are used to specify strongly-typed view. These objects are used to pass data from controller to strongly-typed view and vice versa. The classes for these objects can have specific validation rules which are defined by using data annotations. Typically, these classes have those properties which you want to display on corresponding view/page.By default, models are stored in the Models folder of an ASP.NET MVC application.
What are advantages of ASP.NET MVC?
There are following advantages of ASP.NET MVC over Web Forms (ASP.NET):
• Separation of concern - MVC design pattern divides the ASP.NET MVC application into three main aspects Model, View and Controller which make it easier to manage the application complexity.
• TDD - The MVC framework brings better support to test-driven development.
• Extensible and pluggable - MVC framework components were designed to be pluggable and extensible and therefore can be replaced or customized easier then Web Forms.
• Full control over application behaviour - MVC framework doesn’t use View State or server based forms like Web Forms. This gives the application developer more control over the behaviors of the application and also reduces the bandwidth of requests to the server.
• ASP.NET features are supported - MVC framework is built on top of ASP.NET and therefore can use most of the features that ASP.NET include such as the providers architecture, authentication and authorization scenarios, membership and roles, caching, session and more.
• URL routing mechanism - MVC framework supports a powerful URL routing mechanism that helps to build a more comprehensible and searchable URLs in your application. This mechanism helps to the application to be more addressable from the eyes of search engines and clients and can help in search engine optimization.
• Separation of concern - MVC design pattern divides the ASP.NET MVC application into three main aspects Model, View and Controller which make it easier to manage the application complexity.
• TDD - The MVC framework brings better support to test-driven development.
• Extensible and pluggable - MVC framework components were designed to be pluggable and extensible and therefore can be replaced or customized easier then Web Forms.
• Full control over application behaviour - MVC framework doesn’t use View State or server based forms like Web Forms. This gives the application developer more control over the behaviors of the application and also reduces the bandwidth of requests to the server.
• ASP.NET features are supported - MVC framework is built on top of ASP.NET and therefore can use most of the features that ASP.NET include such as the providers architecture, authentication and authorization scenarios, membership and roles, caching, session and more.
• URL routing mechanism - MVC framework supports a powerful URL routing mechanism that helps to build a more comprehensible and searchable URLs in your application. This mechanism helps to the application to be more addressable from the eyes of search engines and clients and can help in search engine optimization.
No comments:
Post a Comment