Posted on: 3/17/2011 10:03:03 AM | Views : 304

Hi!
I have a product-page and a department-page. Both departments and products are picked from a database by their id (productid and deptid).
When I try to route like this, it seems that only the first rule is applied, Why? How can I solve this?
In global.asax:
void RegisterRoutes(System.Web.Routing.RouteCollection routes) { routes.Ignore("{resource}.axd/{*pathInfo}"); routes.MapPageRoute( "Product", "{productid}" "~/Product.aspx"); routes.MapPageRoute( "DeptList", "{deptid}", "~/DeptList.aspx"); } With the above settings I can reach http://mysite.com/myproduct.aspx but not http://mysite.com/mydepartment.aspx.
If I switch so that the DeptList rule comes first "mydepartment.aspx" works but not "m ...

Go to the complete details ...