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.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Pankaj PandeyRank #642 · 3.7K reputationPosted Jun 5, 2013, 9:43 PM EDT
explain a little more about your requirement and problem that you are facing.
alka chandrakar3 reputationPosted Jun 5, 2013, 10:54 PM EDT
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 .
Iftikar HussainRank #423 · 5.9K reputationPosted Jun 14, 2013, 12:22 AM EDT
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.