473,788 Members | 2,898 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2208
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.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)


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.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)

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.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)

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.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)
| > >
|

Jan 18 '06 #6

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

Similar topics

5
1835
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 which it does. So far so good. But the filename, the Internet Explorer suggests is not myfile.csv but myfile.xls. Why does the IE change the file extension? How can I have the save as dialog with the correct suggestion of the filename?
6
1446
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 can't figure out how to config VS.NET to recognize my own file extension name e.g. *.bob, as ASPX pages. Is it matter of creating a set of template? If so, would it compile correctly? My goal is for VS.NET to treat a different extension name the...
2
1504
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 OutputCache directive. If not, please stop me now! In any event, since this page is linked to by numerous external sites, I can't change the path or even the extension. How can I go about creating an ASPX application in the same location while also...
7
1474
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
2908
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 "test.aspx" to "test.extx", where .extx extensions are handled in exactly the same way as aspx pages. In pre-2.0 versions of ASP.NET, simply adding a HttpHandler element (below) to web.config, and adding a IIS mapping of "extx" to
2
1522
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 interactive. I read an article http://authors.aspalliance.com/aspxtreme/aspnet/webforms/authoringaspnetpage.aspx which says that by changing .html etension to .aspx the server will not overburdened. I use to believe otherwise. Can you tell me what...
2
2360
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 that ASP.NET is changing the character encoding in the http header. How can this be corrected so that aspx pages validate correctly? Error Message: "The character encoding specified in the HTTP header (utf-8) is different from the value in...
24
2761
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 is Microsoft's attempt to "dumb down" web application development to help unskilled developers such as web design agencies achieve some results. For high quality applications IHttpHandlers are the way to go.
13
4526
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
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10364
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10172
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4069
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.