public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with parameters new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults ); routes.MapRoute( "viewstudent", // Route name "view/viewstudent", // URL with parameters new { controller = "Movie", action = "Select", id = UrlParameter.Optional } // Parameter defaults ) ; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)