georgeASP
10-05-2004, 08:02 AM
What I would like to duplicate is what happens when I have a hyperlink to a data file -- the browser either automatically displays the file if it can, or offers to save it to disk.
The catch is that these are confidential files located in a folder protected by Windows 2003 Basic Authentication. I don't want the users to have the access username and password -- I want to do this programmatically. I've gotten as far as sending the file OK using a page called ViewFile.aspx, but the browser is offering to save the transmitted file to ViewFile.aspx instead of the real filename, since that is the URL that launched the process. Ooops!
Any suggestions would be greatly appreciated.
George
The catch is that these are confidential files located in a folder protected by Windows 2003 Basic Authentication. I don't want the users to have the access username and password -- I want to do this programmatically. I've gotten as far as sending the file OK using a page called ViewFile.aspx, but the browser is offering to save the transmitted file to ViewFile.aspx instead of the real filename, since that is the URL that launched the process. Ooops!
Any suggestions would be greatly appreciated.
George