BinBrain Community
Welcome, Guest. Please login or register.
February 07, 2012, 11:16:12 AM

Login with username, password and session length
Search:     Advanced search
760 Posts in 417 Topics by 2746 Members
Latest Member: Ditalully
* Home Help Search Login Register


Online Exams | Blogs | Photos | Videos | Real Estate | Recipes | Business Directory| TV | Free Wallpapers
+  BinBrain Community
|-+  Computer Forums
| |-+  ASP.NET and ASP
| | |-+  Rewrite URL
« previous next »
Pages: [1] Print
Author Topic: Rewrite URL  (Read 866 times)
Divya
Newbie
*
Posts: 2


« on: May 24, 2008, 01:37:27 AM »

How to change .aspx extention to any other extention
Logged
bob
Newbie
*
Posts: 41


« Reply #1 on: May 24, 2008, 01:39:21 AM »

You could try using the IIS management console, inspect the mapping setting for .aspx and clone that to a new mapping for a different extension.In addition to associating the extension to the aspnet_isapi.dll file for IIS, you must also associate the extension to a specific handler for aspnet. This can be done in the web.config file of the project like this:

<system.web>
<httpHandlers>
<add verb="*" path="*.myext" type="System.Web.UI.PageHandlerFactory"/>
</httpHandlers>

In this case, the *.myext files will be treated like aspx files. Look in machine.config for other examples of what can be done.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Social Campaigns

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!