Hi,
i am take a datalist and one button on it and i want to display doc or pdf file on click in that button in asp.net.
Please rply as soon as possible..
Thanks.
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 attend5days leftRegister
Sneha Sneha77 reputationPosted Apr 29, 2015, 12:19 AM EDT
http://www.aspsnippets.com/Articles/Upload-and-Download-files-from-SQL-Server-Database-in-ASPNet.aspx
http://www.webblogsforyou.com/how-to-upload-and-download-files-from-server-folder-in-asp-net/
http://www.aspdotnet-suresh.com/2012/02/saveupload-files-in-folder-and-download.html
Regards
Sneha
Yogesh Kumar169 reputationPosted Apr 30, 2015, 6:34 AM EDT
Kristian Franjo2 reputationPosted May 13, 2015, 1:56 AM EDT
If you want to display the path of each document or file in the Datalist, I think the following two links might help:
https://msdn.microsoft.com/en-us/library/bb498210.aspx
http://www.w3schools.com/aspnet/aspnet_datalist.asp
But if you want to display the DOC and PDF files directly in the Datalist, you first need to find a way to load and display the document file on web. I think leadtools has an HTML5 document viewer control that you can use to support this feature. You can find an online demo here:
http://demo.leadtools.com/HTML5/DocumentViewerDemo/index.html