|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Force a file download from ASP Page
Hi All
We have a page which we want to allow our users to download files. Can someone point to peice of code that we can use to force the download as opposed to opening the files in the browser. Only one issue here the code need to work with UNC path like \\myserver\files\ and not just c:\inetpub\wwwroot\files I did have a look on internet but all of the code seems to be using local path names but none with UNC path name. Please help! If the problem is to force the download dialog :
http://support.microsoft.com/kb/260519/en-us Else the principle is the same. The main issue with non local files is that you have to make sure that the identity under which the ASP.NET code runs is allowed to access this network share. -- Patrice "JP SIngh" <n***@none.com> a écrit dans le message de news: %23jqCmxN2GHA.3***@TK2MSFTNGP05.phx.gbl...Show quote > Hi All > > We have a page which we want to allow our users to download files. > > Can someone point to peice of code that we can use to force the download > as opposed to opening the files in the browser. > > Only one issue here the code need to work with UNC path like > \\myserver\files\ and not just c:\inetpub\wwwroot\files > > I did have a look on internet but all of the code seems to be using local > path names but none with UNC path name. > > Please help! > > > |
|||||||||||||||||||||||