Hello Patrice.
I have read that kb article, but it cannot be used. Yes, I can set the name
of the file in Response.AddHeader "content-disposition","attachment;
filename=fname.ext" header, but if the user wants to open the file, it is not
possible. There is no file In temporary internet files folder with that name.
It is still saved with the name derived from the url.
I think that the only option is to map the 404 error page to
requestFile.aspx and use Server.Transfer method. Thank you very much for that
good idea.
Tom
"Patrice" wrote:
Not sure if this is a problem with the client side name of the file or if
you want the user to think that he loads directly from an URL...
Do you use http://support.microsoft.com/kb/260519/en-us ? (note the filename
part that allows to tell which name you want client side)
Else you could handle the 404 error and use Server.Transfer to go to the
RequestFile.asp with the proper filename as a parameter. Client side the
user will think he's loading directly from an URL...
--
"Tomas PAJER" <To********@discussions.microsoft.com> a écrit dans le message
de news:A6**********************************@microsof t.com... I have many office files saved in sql server. The system sends them by one
web page: RequestFile.asp. So every file has the same name
requestFile.asp.
How can i change requested URL on the server from
www.domain.com/requestFile.asp to www.domain.com/someFileName.doc????
I am able to rise "Save or open downloaded file" dialog, but this does
not help me at all.
Thank you very much.
Tom