hi...please try this...first convert ur pdf or any file into Stream then can write this into Response.OutputStream.Write ...with inthe button click..
A.Venkatesan
Microsoft Certified Professional
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact venkatmca008@gmail.com
sukhdeep_kam...
Member
76 Points
53 Posts
enabling user to download file
Feb 24, 2012 05:00 PM|LINK
Hello Developers ,
I want to make users enable to donwlaod some file(could be .pdf or some mussic file ) whenever they click a button .
plz send me c# code to do that
Thanx in advance
basheerkal
Star
10672 Points
2426 Posts
Re: enabling user to download file
Feb 24, 2012 06:16 PM|LINK
If the Path of the file is shown as a hyperLink it can be downloaded by clicking on it
B
(Talk less..Work more)
venkatmca008
Participant
1810 Points
341 Posts
Re: enabling user to download file
Feb 25, 2012 01:23 AM|LINK
hi...please try this...first convert ur pdf or any file into Stream then can write this into Response.OutputStream.Write ...with inthe button click..
Microsoft Certified Professional
Please mark the replies as answers if they help or unmark if not.
If you have any feedback about my replies, please contact venkatmca008@gmail.com
sukhdeep_kam...
Member
76 Points
53 Posts
Re: enabling user to download file
Feb 25, 2012 09:35 AM|LINK
actually i am looking for the code
basheerkal
Star
10672 Points
2426 Posts
Re: enabling user to download file
Feb 25, 2012 05:25 PM|LINK
Try this
<asp:LinkButton ID="LB1" runat="server" NavigateUrl="~/YourFile.doc">Download</asp:LinkButton>(Talk less..Work more)