Asp Net MVC
Asp Net MVC
Asp Net MVC
Hamna Ghani
BSCS 5th (A)
The Model-View-Controller (MVC) is an
architectural pattern separates an
application into three main
components:
the model, the view and the
controller.
d will be used
Route defines the URL pattern and handler
mine appropr
Information.
All the configured routes of an application
ming request.
Every MVC application must
configure(register) at least one route, which
is configured by MVC framework by default.
You can register a route inRouteConfigclass,
which is in
RouteConfig.csunderApp_Startfolder.
the route is configured using the Map Route()
extension method of Route Collection
where name is "Default", url pattern
is "{controller}/{action}/{id}"
and defaults parameter for controller, action
method and id parameter.
This Asp. Net MVC structure is very flexible:
You can have as many application categories as you
need, simply by adding controllers.
The controllers keep the application well organized.
You can have as many views as you need.