Asp Net MVC

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 15

Presented by:

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

stored in Route Table and will be used by


Routing engine to determine appropriate
handler class or file for an incoming request.

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.

You might also like