Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am trying to download files from web server its working fine but my problem is that whenever i downloading the browser showing save and run dialog. I want to download files automatically without showing this dialog. Please help me.

Thanks in Advance
Posted
Comments
Richard MacCutchan 19-Jan-15 5:24am    
You cannot do that as it would break the security of the client's system.

1 solution

try to download that file using a hyperlink.
suppose you have a file at "www.abcd.com\pdf\test.pdf" in this path. then try to download using the hyperlink as shown below

C#
<a href="www.abcd.com\pdf\test.pdf" target="_Blank"></a>


i think it will not prompt for the save or run dialog.

if still having problem to understand then post your download file code.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900