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.Web.UI.PageHandlerFactory" />
......................
If you want to add a new file extension , just add a new entry like:
<add verb="*" path="*.mspx" type="System.Web.UI.PageHandlerFactory" />
Also, do not forget to add the IIS extension mapping in the IIS virtual
directory setting(redirect 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: AcYbtCvLFGvY8HQ6QO6TwoZraYEJyA==
| X-WBNR-Posting-Host: 64.253.156.46
| From: "=?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?="
<
[email protected]>
| References: <
[email protected]>
<
[email protected]>
<
[email protected]>
<
[email protected]>
| Subject: Re: changing the .aspx extension
| Date: Tue, 17 Jan 2006 14:20:06 -0800
| Lines: 28
| Message-ID: <
[email protected]>
| 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.public.dotnet.framework.aspnet
| NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.2.250
| Path: TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGXA03.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:371562
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Extending ASP.NET
|
http://msdn.microsoft.com/asp.net/reference/extend/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:
| >
| > > @f14g2000cwb.googlegroups.com:
| > >
| > > > There are called ASP.NET Custom Handlers.
| > > >
| > >
| > >
| > > Isn't it easier just to remap the extensions in IIS?
| > >
| > > --
| > > Stan Kee (
[email protected])
| > >
|