Michael

Michael

  • 1.5k
  • 238
  • 19k

Url friendly with parameters help.

Oct 9 2014 4:55 AM
Hello Everyone,
 
I have a .net c# web forms project, and I am trying to use RegisterRoutes in order to modify ordinary urls (product.aspx) to seo friendly url (product/).
 
However in an ordinary situation i can redirect to "product.aspx" page either as it is, either adding a parameter like "product.aspx?id=3". I tried to do the same with RegisterRoutes and I set the "product.aspx" page to "product/{id}".
 
If I redirect to page with parameter it works fine. On the other hand if I redirect to the page without parameter like "product/" then website crashed with error HTTP 404 - website not found.
 
Your advice will be appreciated.
 
Thank you in advance.