473,385 Members | 1,472 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,385 software developers and data experts.

Omitting the .ASPX Extension

RC
I'd like know what it takes to enable users to open a specific page by
typing the page name into the browser's address bar without having to also
include the .aspx extension.

Example: WWW.MySite.COM/Login

and NOT

WWW.MySite.com/Login.aspx

Thanks!
Nov 18 '05 #1
5 1185

All it would take in the example you provided just having "Login" folder and
making Login.aspx a default file.

"RC" wrote:
I'd like know what it takes to enable users to open a specific page by
typing the page name into the browser's address bar without having to also
include the .aspx extension.

Example: WWW.MySite.COM/Login

and NOT

WWW.MySite.com/Login.aspx

Thanks!

Nov 18 '05 #2
I am not really sure, why you want to do that. To do for every page, its
simply not possible. Because, IIS uses the requested page extension to
figure out where to send the request. For a typical asp.net page, IIS looks
at its extension .aspx, and then forward this request to aspnet_isapi.dll,
which handles the typical asp.net requests, similarly for other kinds of
pages other isapi dll's registered in the IIS metabase.

--
Kumar Reddi
http://kumarreddi.blogspot.com
"RC" <a@b.com> wrote in message news:e2*************@TK2MSFTNGP10.phx.gbl...
I'd like know what it takes to enable users to open a specific page by
typing the page name into the browser's address bar without having to also
include the .aspx extension.

Example: WWW.MySite.COM/Login

and NOT

WWW.MySite.com/Login.aspx

Thanks!

Nov 18 '05 #3
Well try looking at :-
HTTP Handlers and HTTP Modules in ASP.NET
http://www.microsoft.com/india/msdn/articles/57.aspx

U could have your own extensions apart from ASPX if u wish..
Enjoy.
Patrick
"RC" wrote:
I'd like know what it takes to enable users to open a specific page by
typing the page name into the browser's address bar without having to also
include the .aspx extension.

Example: WWW.MySite.COM/Login

and NOT

WWW.MySite.com/Login.aspx

Thanks!

Nov 18 '05 #4
Yes what Patrick said is true, but without extensions its not possible.
That's what I was saying in my previous post
--
Kumar Reddi
http://kumarreddi.blogspot.com

"Patrick.O.Ige" <Pa*********@discussions.microsoft.com> wrote in message
news:47**********************************@microsof t.com...
Well try looking at :-
HTTP Handlers and HTTP Modules in ASP.NET
http://www.microsoft.com/india/msdn/articles/57.aspx

U could have your own extensions apart from ASPX if u wish..
Enjoy.
Patrick
"RC" wrote:
I'd like know what it takes to enable users to open a specific page by
typing the page name into the browser's address bar without having to also include the .aspx extension.

Example: WWW.MySite.COM/Login

and NOT

WWW.MySite.com/Login.aspx

Thanks!

Nov 18 '05 #5
IIS relies on file extensions in the HTTP request to figure out which
handler should honor the request. Handlers are mapped by extension. So the
only way you can practically do this is to create a folder called "Login"
and put your code in default.aspx.
--
Klaus H. Probst, MVP
http://www.vbbox.com/
"RC" <a@b.com> wrote in message news:e2*************@TK2MSFTNGP10.phx.gbl...
I'd like know what it takes to enable users to open a specific page by
typing the page name into the browser's address bar without having to also
include the .aspx extension.

Example: WWW.MySite.COM/Login

and NOT

WWW.MySite.com/Login.aspx

Thanks!

Nov 18 '05 #6

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

Similar topics

11
by: Bruce W...1 | last post by:
Would the code-behind and all ASP.NET functionality still work if the ..aspx files had instead .htm extensions? I suppose it boils down to whether the page directives would still work. Thanks...
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...
6
by: Kentamanos | last post by:
Please don't ask me why I'm doing this (trust me, it makes sense in my system), but I'd like to basically redirect requests for a certain extension (thus a handler) to an ASPX page behind the scenes....
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...
1
by: BLACKDOG157 | last post by:
I bought a dll, put it in my website's BIN directory, and then put a line in my asp.net page as follows: Dim MyCrypt As BeanSoftware.Components.CommonCrypt = New...
5
by: pb | last post by:
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.
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
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.