I have a binary file in database.
How i can make a download of this file in header of page when a button is clicked
Any ideas??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Alright, there’s a couple of things you might be trying to do, its not completely clear but I’ll take a stab at it. Let’s say you’ve got the following basic database comprised of a file identifier and the binary file information:
What you need is a page (in this case called “GetFile.aspx”) with the following in the the code-behind’s Page_Load event:
Then in your page just when the person clicks the button direct them to this page making sure to pass a valid
fileidin the querystring.Like I said, I think this is what you’re looking for, if not, clarify your description above