I am try to download file use to gridview
I am try to download file use to gridview tool and file path get from database.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Jun 14, 2013, 4:22 AM
Have you stored the file content as a byte array in database? if yes, then you can download the file by creating one Http handler (.ashx). In that handler you can write the code to get the byte array from database and then converted to respective format (like .txt, .pdf etc) and after that by using Response object you can write the content in output flash.
If you have stored the physically location of the path, then just map the path to actual path and use window.open to download the file
Regards,
Iftikar
Remember to click "Mark as Answer" on the post, if it helps you.
alka chandrakarPosted Jun 6, 2013, 2:54 AM
I am already save file in database,and this file search anther webpage and show in gridview.
Now iI am try to download this file ,How to do .
Pankaj PandeyPosted Jun 6, 2013, 1:43 AM
explain a little more about your requirement and problem that you are facing.