Answers for "route config in mvc"

0

route config in mvc

void Application_Start(object sender, EventArgs e)   
{  
    // Code that runs on application startup  
       
    System.Web.Routing.RouteTable.Routes.MapPageRoute("Home","Home/Index","~/Default.aspx");  
  
     System.Web.Routing.RouteTable.Routes.MapPageRoute("About","Home/About-WDI","~/About.aspx");  
  
}  
Posted by: Guest on March-14-2020

Browse Popular Code Answers by Language