MVC4 Applications Presented by QuontraSolutions QuontraSolutions
MVC4 Applications Presented by QuontraSolutions QuontraSolutions
NET MVC
Model View Controller (MVC)
applications by using the
ASP.NET framework
Presented By
QuontraSolutions
IT Courses Online Training
Email:[email protected]
Call Us: 404-900-9988
ASP.NET MVC
ASP.NET
4. Friendly URLs
Model
View
Controller
Test-Driven Development
User Interface
Controller
Data Objects
<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['aspnetForm'];
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</script>
Friendly URLs
C:\Inetpub\wwwroot\WebSite\Products.aspx
ASP.NET style:
http://www.website.com/Products.aspx?name=Meat
MVC style:
http://www.website.com/Products/Meat
Conclusion
ASP.NET MVC supports pure MVC pattern, the
same development pattern Rails are based on.
The advantages of ASP.NET MVC applications:
1. It makes it easier to manage complexity by dividing an application into
the model, the view, and the controller.
2. It does not use view state or server-based forms.
3. It uses a Front Controller pattern that processes Web application
requests through a single controller. This enables you to design an
application that supports a rich routing infrastructure with friendly
URLs.
4. It provides better support for test-driven development (TDD).
5. It works well for Web applications that are supported by large teams
of developers and Web designers who need a high degree of control
over the application behavior.
Thank You