RouteTable.Routes.Addstructurewas able to usein
asp.net
webforms.
but,
the error
iswithinwebpages.only
works
with
the folder
structure of
the routing
andcshtmlurl?How can I usethe followingstructure?
RouteTable.Routes.Add("cat", new Route("category/{catname}-{catid}", new PageRouteHandler("~/Default.cshtml")));
RouteTable.Routes.Add("search", new Route("search/{src}", new PageRouteHandler("~/Default.cshtml")));
aspnet1071
Member
64 Points
35 Posts
RouteTable.Routes.Add
Jul 07, 2011 02:00 PM|LINK
RouteTable.Routes.Add structure was able to use in asp.net webforms. but, the error is within webpages. only works with the folder structure of the routing and cshtml url? How can I use the following structure?
RouteTable.Routes.Add("cat", new Route("category/{catname}-{catid}", new PageRouteHandler("~/Default.cshtml"))); RouteTable.Routes.Add("search", new Route("search/{src}", new PageRouteHandler("~/Default.cshtml")));