473,385 Members | 1,588 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.

Link alias

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.
Jul 19 '05 #1
1 1519
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" <sd*@icl.no> wrote in message
news:53*************************@posting.google.co 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?

Jul 19 '05 #2

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

Similar topics

1
by: tabonni | last post by:
Hi All I connected MS Exchange Server to MS Access database using Access link table function. I can open the database table and see the fields and data inside the link table. However, the table...
1
by: Grant Hammond | last post by:
I have a number of MS Access apps that link to SQL Sever tables. If the SQL Sever database is moved to another server, or the server is replaced, the unc address to the database changes as the...
2
by: Schmendrick | last post by:
I have a menu program that starts other programs... Shell ProgramPath, vbNormalFocus No problem... BUT, what if I want to open a link on the desktop? I need to be able to open the Regional and...
1
by: Jim | last post by:
Hi all, is there a way for me to create an alias on my home PC for a network path at the company work for? I have a database (front end and back end) where the tables in the back end are linked...
7
by: Lance | last post by:
Is there any way to create an import alias that applies to the entire project? For example, lets say that I want "VB" to represent Microsoft.VisualBasic throughout my entire project. Is there...
23
by: wylbur37 | last post by:
I'm running an Apache server on my own computer (Windows XP Pro). I wrote a simple PHP script (called test3.php) that I'm running by putting the following URL in the address bar of the browser...
2
by: softwareakash | last post by:
Hi all Are you appearing in any dot net interview I found a very useful link for Interview question in Microsoft technologies. It helped me a lot in Interview preperations :) Here is the link...
3
by: JakDaniel | last post by:
is it possible, create a selector as alias of another selector... (maybe) in another stylesheet file? ex: html page .... <link rel="stylesheet" type="text/css" href="style1.css" /> <link...
7
by: Jeff Gaines | last post by:
I have spent the day learning how to use Zend Development Environment. I can now produce a list of files in a directory, filtered by extension, and apparently clickable. Unfortunately clicking on...
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: 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:
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: 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?
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...
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...

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.