Advertisement
gyrospring

✒ 0001.0002 VS2017 VB MVC5 Razor RouteConfig.vb

Apr 28th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Public Module RouteConfig
  2.  
  3.  
  4.  
  5.  
  6. Public Sub RegisterRoutes(ByVal routes As RouteCollection)
  7.  
  8.  
  9. routes.RouteExistingFiles = True
  10.  
  11. routes.IgnoreRoute("{resource}.axd/{*pathInfo}")
  12.  
  13. routes.MapRoute(
  14. name:="Home",
  15. url:="{*Path}",
  16. defaults:=New With {.controller = "Home", .action = "Index"}
  17. )
  18.  
  19.  
  20. End Sub
  21.  
  22.  
  23.  
  24.  
  25. End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement