-1

In asp.net, how can we disable the page extension in the browser. can you help me. Thank you.

Surya sasidhar
  • 29,607
  • 57
  • 139
  • 219

2 Answers2

1

its URLrewritting there are a lot of resource on thenet this one is good URL Rewriting with ASP.NET and this one URL Rewriting in ASP.NET

DeveloperX
  • 4,633
  • 17
  • 22
0

You can easily do this by creating a folder with name of your choice and create your asp.net page inside the folder and set it is a default page for that folder, IIS usually considers file with file name as index, default, home by default.

Example - : If you want your url to be yoursitename.com/login instead of yoursitename.com/login.aspx , just create a folder with the name login in your site and in the root of the login folder add your asp.net page with any name and make it the default page for that folder and disable directory browsing for that folder

You can alternatively use URL Rewriting techniques to acheive this

Vamsi
  • 4,237
  • 7
  • 49
  • 74