How to use Download option in ASP...
-
Dear Friends, I have an .asp page in which I would like to give a download option for the client to download some documets. Please can some one help me to write a simple code behind the button or behind the link to get dialog box to allow the client to download the file and save it where ever he need to save.. Your quick response will be highly appreciated. Thanks Murtuza Patel.
-
Dear Friends, I have an .asp page in which I would like to give a download option for the client to download some documets. Please can some one help me to write a simple code behind the button or behind the link to get dialog box to allow the client to download the file and save it where ever he need to save.. Your quick response will be highly appreciated. Thanks Murtuza Patel.
if u have file to be downloaded on your server just give hyperlink to that file and automatically a winodw will appear when user click on that link.... am i not right???? Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm
-
if u have file to be downloaded on your server just give hyperlink to that file and automatically a winodw will appear when user click on that link.... am i not right???? Sushant Mathur Bangalore, INDIA. http://n.domaindlx.com/fun2ssh/HOME.htm
Dear Sushant Mathur Thanks a lot for your quick response. The problem is that it is working fine for word power point or zip files. But it can not open the dialog box for .pdf or .swf files. it is trying to open these type of files directly in the browser itself. Please help me out in this way. I need that regardless of type of file it is it must be downloaded by opening the dialog box. Thanks Murtuza Patel
-
Dear Sushant Mathur Thanks a lot for your quick response. The problem is that it is working fine for word power point or zip files. But it can not open the dialog box for .pdf or .swf files. it is trying to open these type of files directly in the browser itself. Please help me out in this way. I need that regardless of type of file it is it must be downloaded by opening the dialog box. Thanks Murtuza Patel
You can force download of any file by setting a contentType header to an unknown in the header right. Vasudevan Deepak Kumar Personal Web: http://www.lavanyadeepak.tk/ I Blog At: http://www.dotnetjunkies.com/weblog/deepak/
http://deepakvasudevan.blogspot.com/
http://deepak.blogdrive.com/