473,786 Members | 2,407 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1542
I assume you mean in the browser url. this is done with httphandler that
rewrites the url path.

-- bruce (sqlwork.com)
"Gala Grant" <ga********@gma il.com> wrote in message
news:c0******** *************** ***@posting.goo gle.com...
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********@gma il.com> wrote in message
news:c0******** *************** ***@posting.goo gle.com...
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********@gma il.com> wrote in message
news:c0******** *************** ***@posting.goo gle.com...
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********@gma il.com> wrote in message
news:up******** ******@TK2MSFTN GP10.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.o rg> wrote in message
news:uM******** ******@tk2msftn gp13.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********@gma il.com> wrote in message
news:c0******** *************** ***@posting.goo gle.com...
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
8390
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 discoverred Marc Hammonds PyWin32 extensions, (whcih are awesome) and Tim Golden's WMI wrapper for accessing the Windows Management Instrumentation (Win32_Classes) but now I have been asked to remove these dependandcies and still obtain machine...
3
3170
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 I find a list of all the types which can be returned? For example, if it is a Word document will it return "document/doc".
5
2548
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 proper file icon before I display the file name. E.g. if it is a .doc file, I would like to display the Microsoft Word icon. The icon should depend on which program is associated with the file type.
3
1479
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 Until Use the Alt Key" property has been unchecked. This property is checked by default. All of the workstations at my place that would use a vb.net app I create are using Windows 2000. When I deploy a vb.net app to a workstation is there a way...
2
2571
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 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">
2
151660
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 application, which contains a button and a label. When the button is clicked, some message is shown on the label. That's it. The AJAX works great on my development machine, but on the production server, I got the typical error as follows:
38
5079
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
3536
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 should test for gif, tiff, and png... Anyway, here's the code: <?php //Open images directory $dir = opendir("images"); //read files in the dir while (($file = readdir($dir)) !== false) //test to make sure jpg
26
3612
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 corresponding locking file appears in the Windows Explorer view pane as well as expected. Occasionally, a "bare" db1 file (extension only without a filename) appears in the Windows Explorer window. Can anyone tell me what that file is and what it...
0
9492
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
10360
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
10163
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
10108
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
9960
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6744
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
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...
2
3668
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.