I made a folder called 'pages' in my asp web forms project. In this folder I have a lot of pages:
- test.aspx
- hello.aspx
When I open these pages in a browser I get:
- www.domain.com/pages/test.aspx
- www.domain.com/pages/hello.aspx
This is normal, I know. But what if I want to delete the /pages in the url and just show (without .aspx):
- www.domain.com/test*.aspx*
- www.domain.com/hello*.aspx*
I can do this by manually adding a new route (in RegisterRoutes() method) for each page but is there a way to do this dynamicly?
I found this question but I don't know if I can use it for this problem. WebForms custom / dynamic routing