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

How do I not display file extensions?

I have been searching for quite a while to find an answer (that
doesn't involve buying 3rd party software) as to how to get asp.net to
not display any file extension. Has anyone succeeded in doing this,
and if so, how?

Thanks,
Gala Grant
Nov 18 '05 #1
8 1529
I assume you mean in the browser url. this is done with httphandler that
rewrites the url path.

-- bruce (sqlwork.com)
"Gala Grant" <ga********@gmail.com> wrote in message
news:c0**************************@posting.google.c om...
I have been searching for quite a while to find an answer (that
doesn't involve buying 3rd party software) as to how to get asp.net to
not display any file extension. Has anyone succeeded in doing this,
and if so, how?

Thanks,
Gala Grant

Nov 18 '05 #2
Thanks, I guess I should have asked better. I was pretty sure i could
use httphandler, but I can't figure out how exactly. I can see how to
change file extensions to something new, but not how to remove.

Thanks,
Gala

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
Displaying any file extension WEHRE?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Gala Grant" <ga********@gmail.com> wrote in message
news:c0**************************@posting.google.c om...
I have been searching for quite a while to find an answer (that
doesn't involve buying 3rd party software) as to how to get asp.net to
not display any file extension. Has anyone succeeded in doing this,
and if so, how?

Thanks,
Gala Grant

Nov 18 '05 #4

Basically, I would like to have a url that was
http://www.website.com/folder/file

instead of
http://www.website.com/folder/file.aspx
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #5
Check out
http://msdn.microsoft.com/asp.net/us...writing_topic2
for some information about this.
--
Girish Bharadwaj
http://msmvps.com/gbvb
"Gala Grant" <ga********@gmail.com> wrote in message
news:c0**************************@posting.google.c om...
I have been searching for quite a while to find an answer (that
doesn't involve buying 3rd party software) as to how to get asp.net to
not display any file extension. Has anyone succeeded in doing this,
and if so, how?

Thanks,
Gala Grant

Nov 18 '05 #6
you add the extension on the rewrite.

-- bruce (sqlwork.com)
"Gala Grant" <ga********@gmail.com> wrote in message
news:up**************@TK2MSFTNGP10.phx.gbl...
Thanks, I guess I should have asked better. I was pretty sure i could
use httphandler, but I can't figure out how exactly. I can see how to
change file extensions to something new, but not how to remove.

Thanks,
Gala

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #7
BTW: I dont think you can do what you want to do just use ASP.NET code. you
will need to write a ISAPI dll. Either that, or, you will need to create
directories with the same name as the aspx file (without the .aspx
extension) and drop a default.aspx file into it.
:(

--
Girish Bharadwaj
http://msmvps.com/gbvb
"Girish Bharadwaj" <gi*****@mvps.org> wrote in message
news:uM**************@tk2msftngp13.phx.gbl...
Check out
http://msdn.microsoft.com/asp.net/us...writing_topic2 for some information about this.
--
Girish Bharadwaj
http://msmvps.com/gbvb
"Gala Grant" <ga********@gmail.com> wrote in message
news:c0**************************@posting.google.c om...
I have been searching for quite a while to find an answer (that
doesn't involve buying 3rd party software) as to how to get asp.net to
not display any file extension. Has anyone succeeded in doing this,
and if so, how?

Thanks,
Gala Grant


Nov 18 '05 #8
:( that is what I was afraid of.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #9

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

Similar topics

1
by: Omer Ahmad | last post by:
Hi All, I've been working with python for about 6 months now, and have been very impressed with the size and scope of the libraries. I have, however, run into a bit of a problem. I...
3
by: Shapper | last post by:
Hello, I created a script to upload a file. To determine the file type I am using userPostedFile.ContentType. For example, for a png image I get "image/png". My questions are: 1. Where can...
5
by: Anders K. Olsen | last post by:
Hello group I'm developing a file application, but I have run into a problem that I hope you can help with. My application lists a number of files (names). Now I would like to display the...
3
by: Rich | last post by:
I just discovered that if I set an accelerator letter on a button it won't display the accelerator underline unless the "Desktop/Properties/Display/Effects/Hide Keyboard Navigation Indicators...
2
by: Dan | last post by:
Hi, I know this code is not entirely javascript, but bare with me. Can you please tell me why this does not work: page: filemanager.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0...
2
by: antonyliu2002 | last post by:
I am testing AJAX. I've downloaded the AJAX Extension and the CTP December package and installed on BOTH my development machine and the production server. Then I created a very very simple web...
38
by: ted | last post by:
I have an old link that was widely distributed. I would now like to put a link on that old page that will go to a new page without displaying anything.
9
by: Confused but working on it | last post by:
Just wanted to say thanks for the posts helping me make ths work. Added a few comments and after the readdir used a pattern match to test for ..jpg, and seems to work fine on my test setup. Maybe I...
26
by: Don Calloway | last post by:
I have created a <filename>.db1 (where <filenameis the name given to the database) Access database that is being used in multi-user mode. When the <filename>.db1 file is opened by a user, the...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.