473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

changing the .aspx extension

pb
Do anyone know how to change the .aspx extension to something else, say
..sssx, for all or part of a ASP.NET 2.0 site? I recall a Microsoft article
on this some time ago, but I cannot locate it.
Jan 17 '06 #1
5 2183
There are called ASP.NET Custom Handlers.

Here is a link to an article:
http://www.neopoleon.com/blog/ngIHttpHandlerOne.aspx

Jan 17 '06 #2

Spam Catcher wrote:
"tdavisjr" <td******@gmail.com> wrote in news:1137528944.569564.111260
@f14g2000cwb.googlegroups.com:
There are called ASP.NET Custom Handlers.

Isn't it easier just to remap the extensions in IIS?

--
Stan Kee (sp**********@rogers.com)


Humm...I have never tried that method to see if that works. In addition
to remapping the extension in IIS, you would also have to make a
change to the machine.config file in the <httpHandlers> section. The
question is. There may be some issues. Like will you still be able to
us the Visual Studio Designer for web forms? I'm sure others can come
up with more. However, do you really think this is an easier solution.
It may seem that way, but you never know. If the poster want to give
this a try, then do so and report the findings. I'm curious to know if
this can be done or not.

Jan 17 '06 #3
pb
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.googlegroups.com:
There are called ASP.NET Custom Handlers.

Isn't it easier just to remap the extensions in IIS?

--
Stan Kee (sp**********@rogers.com)

Jan 17 '06 #4
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.googlegroups.com:
There are called ASP.NET Custom Handlers.

Isn't it easier just to remap the extensions in IIS?

--
Stan Kee (sp**********@rogers.com)

Jan 17 '06 #5
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==?="
<Ph**************@webswapp.com>
| References: <DD**********************************@microsoft.co m>
<11**********************@f14g2000cwb.googlegroups .com>
<Xn**********************************@127.0.0.1>
<C1**********************************@microsoft.co m>
| Subject: Re: changing the .aspx extension
| Date: Tue, 17 Jan 2006 14:20:06 -0800
| Lines: 28
| Message-ID: <22**********************************@microsoft.co m>
| 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!TK2MSFT NGXA03.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/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.googlegroups.com:
| > >
| > > > There are called ASP.NET Custom Handlers.
| > > >
| > >
| > >
| > > Isn't it easier just to remap the extensions in IIS?
| > >
| > > --
| > > Stan Kee (sp**********@rogers.com)
| > >
|

Jan 18 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Winston | last post by:
Hi Group, in my aspx page there is an Response.Redirect to a file called myfile.csv. The file consists of plain text with comma separated values. I want that the browser opens the save as dialog...
6
by: Bob | last post by:
I noticed that some of the Microsoft site pages have the extension name of mspx. It's easy to config IIS to map a particular extension name to the ASP.NET dll for production purpose. However I...
2
by: Dave | last post by:
I have an existing asp page that I would like to upgrade/convert to aspx. It gets a million or two hits per day, so I'm surmising that at a minimum I would benefit from compilation and the...
7
by: Shaul Feldman | last post by:
Hello, the question is how can I masquerade ASPX files behind HTML extension? Thank you in advance. -- With the best wishes, Shaul Feldman
3
by: Christopher Baldwin | last post by:
Hello, Using ASP.NET v2.0.40607.42, I'm attempting to create a new file extension that should be handled exactly like "aspx" pages. For example, I just want to rename an aspx page from...
2
by: Joe | last post by:
Hi, I have a website with a mix of static (.html) and dynamic pages (.aspx) pages. I was wondering to change extension .html to .aspx , only to accommodate future needs of making static pages...
2
by: John Dalberg | last post by:
The below html validates correctly on w3.org's html validator when the file has an html extension. When the same file gets an aspx extension, I get the error below from the validator. This tells me...
24
by: John Rivers | last post by:
ASPX which means ASPX pages, the code-behind concept, User Controls, Web Controls etc. is very poorly designed and makes it extremely hard to develop professional quality web applications. ASPX...
13
by: Matt | last post by:
Does anyone know how to hide the ASPX extension of web pages in ASP.Net 2.0? Thanks, Matt
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.