Hi
I have Pdf files saved on Server. I want to display their list in repeater. When user clicks on Pdf file it should open in another window.
User should not be able to download/save file
Thank
Hi
I have Pdf files saved on Server. I want to display their list in repeater. When user clicks on Pdf file it should open in another window.
User should not be able to download/save file
Thank
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
Rajkiran SwainRank #165 · 14.4K reputationPosted May 22, 2023, 1:29 AM EDT
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { // Retrieve the list of PDF files from the server List pdfFiles = GetPdfFiles(); // Bind the PDF file list to the repeater control pdfRepeater.DataSource = pdfFiles; pdfRepeater.DataBind(); } } private List GetPdfFiles() { // Retrieve the PDF file list from your data source // For example, querying a database or reading from a directory // Return the list of PdfFile objects with properties like Name and Url }Ramco RamcoRank #462 · 5.4K reputationPosted May 22, 2023, 1:57 AM EDT
Hi Rajkiran
Pdf files are on a Server folder. How i read the files and display in repeater
Thanks