|
116 | 116 |
|
117 | 117 |
|
118 | 118 | Model–view–controller (MVC) is a software architectural pattern for implementing user interfaces. It divides a given software application into three interconnected parts, so as to separate internal representation of information from the way that information is presented to or accepted from the user.
|
119 | | -The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating web applications. The ASP.NET MVC Framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentications. The MVC framework is defined in the System.Web.Mvc assembly. It provides full control over HTML, JavaScript and CSS. It's the better as well as a recommended approach for large-scale applications where various teams are working together. |
120 | | -MVC is a framework for building web applications using a MVC (Model View Controller) design: |
121 | | -• The Model represents the application core (for instance a list of database records). |
122 | | -• The View displays the data (the database records). |
123 | | -• The Controller handles the input (to the database records). |
124 | | - |
125 | | -The MVC model also provides full control over HTML, CSS, and JavaScript. |
126 | | - |
127 | | - |
128 | | - |
129 | 119 |
|
| 120 | +The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating web applications. The ASP.NET MVC Framework is a lightweight, highly testable presentation framework that (as with Web Forms-based applications) is integrated with existing ASP.NET features, such as master pages and membership-based authentications. The MVC framework is defined in the System.Web.Mvc assembly. It provides full control over HTML, JavaScript and CSS. It's the better as well as a recommended approach for large-scale applications where various teams are working together. |
130 | 121 |
|
| 122 | +MVC is a framework for building web applications using a MVC (Model View Controller) design: |
131 | 123 |
|
| 124 | +• The Model represents the application core (for instance a list of database records). |
132 | 125 |
|
| 126 | +• The View displays the data (the database records). |
133 | 127 |
|
| 128 | +• The Controller handles the input (to the database records). |
134 | 129 |
|
135 | 130 |
|
| 131 | +The MVC model also provides full control over HTML, CSS, and JavaScript. |
136 | 132 |
|
137 | 133 | The MVC model defines web applications with 3 logic layers:
|
| 134 | + |
138 | 135 | • The business layer (Model logic)
|
| 136 | + |
139 | 137 | • The display layer (View logic)
|
| 138 | + |
140 | 139 | • The input control (Controller logic)
|
| 140 | + |
141 | 141 | The Model is the part of the application that handles the logic for the application data. Often model objects retrieve data (and store data) from a database.
|
| 142 | + |
142 | 143 | The View is the part of the application that handles the display of the data. Most often the views are created from the model data.
|
143 | 144 | The Controller is the part of the application that handles user interaction. Typically controllers read data from a view, control user input, and send input data to the model.
|
| 145 | + |
144 | 146 | The MVC separation helps you manage complex applications, because you can focus on one aspect a time. For example, you can focus on the view without depending on the business logic. It also makes it easier to test an application.
|
145 | 147 |
|
| 148 | + |
146 | 149 | ### What are the advantages of MVC?
|
147 | 150 | Multiple view support - Due to the separation of the model from the view, the user interface can display multiple views of the same data at the same time.
|
148 | 151 | Change Accommodation - User interfaces tend to change more frequently than business rules (different colors, fonts, screen layouts, and levels of support for new devices such as cell phones or PDAs) because the model does not depend on the views, adding new a type of views to the system generally does not affect the model. As a result, the scope of change is confined to the view.
|
|
0 commit comments