ASP.NET Routing, Simple issue

mumnUttense

New Member
I have the below:\[code\] routes.MapPageRoute("RouteToPages", "{PageName}", "~/Page.aspx"); routes.MapPageRoute("RouteToProducts", "products", "~/Products.aspx"); routes.MapPageRoute("RouteToProduct", "product/{ProductName}", "~/Products.aspx");\[/code\]Of course as you might have guessed, I can never go to /products on my website because it will automatically redirect me to ~/Page.aspx.Is there a way to fix this and allow routing to other "directories" while maintaining a dynamic page name on the root of my domain ?Thanks!
 
Back
Top