Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Link alias

Reply
Thread Tools

Link alias

 
 
sdybvik
Guest
Posts: n/a
 
      07-30-2003
To secure files on a site with authentication we have put the
attachments in a folder outside the IIS web site like this:

D:\Documents\<ItemID>\filename.doc

where ItemID is a number which we use to check permissions inside our
application.

In order to download the file from the site we have made a binary
reader component (we could probably use SAFileUp or something instead,
but this works) to send the file through an ASP-file:

http://mysite/Docs/ShowDoc.asp?ID=<ItemID>

This works well.

So to my problem:
If I right click the link to save the file on my local computer (Save
target as), it will save the file properly, but the filename in the
Save As-dialog is ShowDoc.asp. I want it to be filename.doc instead.
Is it possible?

I've heard that on a Apache web server you can write the link like
this:

http://mysite/something/filename.doc?ID=<ItemID>

but then the server knows that it's
http://mysite/Docs/ShowDoc.asp?ID=<ItemID> it should load. If this is
possible in IIS, the Save As-problem will be solved. Hopefully.
 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      07-30-2003
The method described here should work and will allow you to specify a
filename. The filename that's used in the physical path on the server does
not have to be what is used in the filename value in the header that you
return, I believe.

http://www.aspfaq.com/show.asp?id=2161

Ray at work

"sdybvik" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) m...
> http://mysite/Docs/ShowDoc.asp?ID=<ItemID>
>
> This works well.
>
> So to my problem:
> If I right click the link to save the file on my local computer (Save
> target as), it will save the file properly, but the filename in the
> Save As-dialog is ShowDoc.asp. I want it to be filename.doc instead.
> Is it possible?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reference/alias in perl vs reference/alias in C++ grocery_stocker C++ 9 05-24-2008 04:32 AM
XP X64 Pro, IE7, Delphi 2007, IntraWeb, MS Access, ODBC Alias problem: Insufficient memory for this operation. Alias: SomeDatabase. Skybuck Flying Windows 64bit 13 01-09-2008 07:34 PM
RE: Link Link Link =?Utf-8?B?REw=?= Windows 64bit 0 05-17-2005 12:15 PM
Re: Link Link Link DANGER WILL ROBINSON!!! Kevin Spencer ASP .Net 0 05-17-2005 10:41 AM
[vhdl] how to wire two signals together? alias not adequate Khashishi VHDL 3 09-22-2004 10:36 PM



Advertisments