Osama khodroj
Osama khodroj

Reputation: 1230

Hide .aspx from all web Pages

Hi how i can hide .aspx from all my pages in my project

Upvotes: 1

Views: 2811

Answers (3)

Munjal Pandya
Munjal Pandya

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

mamoo
mamoo

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

Related Questions