Hi Pb,
If you want to configure your custom file extension to be served as asp.net
page (proceesed by PageHandler.... ), you can locate the <httpHandlers >
configure element in machine.config( for asp.net 1.x) or the global
web.config(for asp.net 2.0) under the framework's config folder....
By default, the ".aspx" extension is configured there like:
<httpHandlers >
............... ....
<add verb="*" path="*.aspx" type="System.We b.UI.PageHandle rFactory" />
............... .......
If you want to add a new file extension , just add a new entry like:
<add verb="*" path="*.mspx" type="System.We b.UI.PageHandle rFactory" />
Also, do not forget to add the IIS extension mapping in the IIS virtual
directory setting(redirec t to the aspnet_isapi dll...)
Here is a web article which mentions some of this:
#How ASP.NET Web Pages are Processed on the Web Server
http://aspnet.4guysfromrolla.com/articles/011404-1.aspx
Hope helps. Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| Thread-Topic: changing the .aspx extension
| thread-index: AcYbtCvLFGvY8HQ 6QO6TwoZraYEJyA ==
| X-WBNR-Posting-Host: 64.253.156.46
| From: "=?Utf-8?B?UGhpbGxpcCB XaWxsaWFtcw==?= "
<Ph************ **@webswapp.com >
| References: <DD************ *************** *******@microso ft.com>
<11************ **********@f14g 2000cwb.googleg roups.com>
<Xn************ *************** *******@127.0.0 .1>
<C1************ *************** *******@microso ft.com>
| Subject: Re: changing the .aspx extension
| Date: Tue, 17 Jan 2006 14:20:06 -0800
| Lines: 28
| Message-ID: <22************ *************** *******@microso ft.com>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="Utf-8"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Content-Class: urn:content-classes:message
| Importance: normal
| Priority: normal
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.p hx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.p hx.gbl!TK2MSFTN GP08.phx.gbl!TK 2MSFTNGXA03.phx .gbl
| Xref: TK2MSFTNGXA02.p hx.gbl
microsoft.publi c.dotnet.framew ork.aspnet:3715 62
| X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
|
| Extending ASP.NET
|
http://msdn.microsoft.com/asp.net/re...d/default.aspx
| --
| HTH,
| Phillip Williams
|
http://www.societopia.net
|
http://www.webswapp.com
|
|
| "pb" wrote:
|
| > I still recall a Microsoft article that addressed this some time ago.
If
| > anyone knows the whereabouts of this article, I would appreciate its
URL.
| >
| > "Spam Catcher" wrote:
| >
| > > "tdavisjr" <td******@gmail .com> wrote in news:1137528944 .569564.111260
| > > @f14g2000cwb.go oglegroups.com:
| > >
| > > > There are called ASP.NET Custom Handlers.
| > > >
| > >
| > >
| > > Isn't it easier just to remap the extensions in IIS?
| > >
| > > --
| > > Stan Kee (sp**********@r ogers.com)
| > >
|