Showing posts with label Why use ASP.NET MVC. Show all posts
Showing posts with label Why use ASP.NET MVC. Show all posts

Tuesday, 9 August 2016

Area in ASP.NET MVC

Posted by : Manav Pandya
AREA in MVC

What is AREA in MVC ?


In ASP.NET MVC , There is one mechanism in which you can create a System with multiple module within single ASP.NET MVC project .


ASP.Net MVC defines areas, helpful in managing a large application into smaller modules.


A large application say, any e-commerce shopping portal may have different sections
e.g. Men, Women, Electronic portal, billing module, reporting and order tracking module .


These modules can be managed into different areas and routing for each area can be managed differently.

Example:


Below application defines 3 areas

  • BillManagement 
  • Order management and 
  • Men shopping portal.


AREA in ASP.NET MVC


Read More

Wednesday, 6 July 2016

Benefits of Choosing ASP.NET MVC Over Web Forms

Posted by : Manav Pandya

Compared to Web Forms, ASP.NET MVC applications benefit by including all ASP.NET core features but also by the 

features in the MVC pattern. Some of those benefits are

[ 1 ] The MVC pattern itself makes it easier to manage complexity by clearly separating the functionality of the application into three core parts, the model, the view, and the controller .


[ 2 ] ASP.NET MVC web applications do not use view state or server-based forms. This makes the MVC framework ideal for developers who want full control over the behavior of an application. 

View state can become very large, which is a problem for devices like smartphones running over slow networks (transmitting all that information can be very slow). In a Web Forms page, you could only have one <form> per page. This is quite a major restriction. In MVC, there is no such restriction—that is, you can have as many<form> elements as you like.

[ 3 ] ASP.NET MVC provides better support for test-driven development (TDD).

[ 4 ] ASP.NET MVC works well for web applications that are supported by large teams of developers
and for web designers who need a high degree of control over the HTML.

Read More

Why to Use ASP.NET MVC ?

Posted by : Manav Pandya

A high level of control over the generated HTML


Unlike Web Forms, Views in ASP.NET MVC render HTML exactly as you tell them to. Recently, Web Forms have been improved in this area but still don’t have the level of control MVC has.

Easier unit testing


With ASP.NET MVC, it is very easy to follow testing patterns such as test-driven development (TDD). Because of the complex event lifecycle in Web Forms, on top of a control-based framework, TDD is a lot easier with MVC.


Separation of concerns


This refers to having all aspects of the system clearly separated from one another. Because of the pattern it implements, an MVC application is divided into discrete and loosely bound parts (model, views, and controllers), which makes it easy to maintain.
Read More