Click here to Skip to main content
15,867,568 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all I have a file on the server.now I want that when user clicks on the url
he gets file downloading option and on clicking on download downloading starts.
please reply!!!
thank's
Posted
Updated 31-May-11 0:22am
v2
Comments
RaviRanjanKr 31-May-11 6:23am    
Hi Mylogics, don't use short words like plz for Please. :)
mylogics 31-May-11 6:26am    
ok sir...sry.

Something like:

<a href="../Downloads/Somefile.zip">Download Zip</a>
 
Share this answer
 
Comments
mylogics 31-May-11 6:23am    
you mean downloding will automatically start jst clicking on this link!!let me try!
mylogics 31-May-11 6:33am    
no it doesnt work please reply in detail..
[no name] 31-May-11 6:39am    
the code is enogh, try correctly, it will work
Sergey Alexandrovich Kryukov 31-May-11 15:19pm    
As simple as that, my 5. Look at OP's surprise!
--SA
In case of simple hyperlink to download the File(where you put it on server) Just put the link to that file i.e. Download. it will be down loaded automatically in virtual server.
ex:- Same as DigitalMan suggested you
in case of you are not using hyperlink i.e. using Button or ImageButton then code will be on Downloading.aspx.vc and it should be look like Response.Redirect("URLofFile")
fore more details take a look there[^]
 
Share this answer
 
<a href="http://www.codeproject.com/Tips/202410/Play-Video-files-in-Web-sites.aspx">Play Video files in Web sites</a>[<a href="http://www.codeproject.com/Tips/202410/Play-Video-files-in-Web-sites.aspx" target="_blank" title="New Window">^</a>]


Hope this can help you.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 31-May-11 15:20pm    
I know how you did it, a 5. :-)
--SA
Prasanta_Prince 1-Jun-11 13:32pm    
Thank you SA. :)

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