(MVC) MVC (2018)

<<назад RouteConfig.vb (Contoso University).

   1:  Imports System
   2:  Imports System.Collections.Generic
   3:  Imports System.Linq
   4:  Imports System.Web
   5:  Imports System.Web.Mvc
   6:  Imports System.Web.Routing
   7:   
   8:  Public Module RouteConfig
   9:      Public Sub RegisterRoutes(ByVal routes As RouteCollection)
  10:          routes.IgnoreRoute("{resource}.axd/{*pathInfo}")
  11:   
  12:          routes.MapRoute(
  13:              name:="Default",
  14:              url:="{controller}/{action}/{id}",
  15:              defaults:=New With {.controller = "Home", .action = "Index", .id = UrlParameter.Optional}
  16:          )
  17:      End Sub
  18:  End Module


Comments ( )
<00>  <01>  <02>  <03>  <04>  <05>  <06>  <07>  <08>  <09>  <10>  <11>  <12>  <13>  <14>  <15>  <16>  <17>  <18>  <19>  <20>  <21>  <22>  <23
Link to this page: //www.vb-net.com/EF-missing-FAQ/Code/RouteConfig.vb.htm
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <CHAT ME>  <ABOUT ME>  < THANKS ME>