Reputation: 1230
Hi how i can hide .aspx from all my pages in my project
Upvotes: 1
Views: 2811
Reputation: 115
You need to implement ASP.Net Routing. In ASP.Net Routing, you need to register routes for the pages for which you need to hide .aspx extension.
You can find more on ASP.Net routing at following blog series:
http://karmic-development.blogspot.in/2013/10/url-routing-in-aspnet-web-forms-part-1.html
http://karmic-development.blogspot.in/2013/10/url-routing-in-aspnet-web-forms-part-2.html
http://karmic-development.blogspot.in/2013/10/url-routing-in-aspnet-web-forms-part-3.html
You can check the whole series, with various practical scenarios.
Upvotes: 0
Reputation: 15253
Use the new ASP.NET 4.0 Routing feature to avail of SEO-friendly URLs:
https://web.archive.org/web/20211020111718/https://www.4guysfromrolla.com/articles/012710-1.aspx
Upvotes: 0
Reputation: 8166
You have to implement an url rewriting mechanism to transform your urls. See here for a simple tutorial:
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
Upvotes: 1