Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Developers,

i want to show pdf files from one folder in asp.net page.
How can i do this?
C#
StringWriter stringWriter1 = new StringWriter();
HtmlTextWriter writer1 = new HtmlTextWriter(stringWriter1);
writer1.RenderBeginTag(HtmlTextWriterTag.Iframe);
writer.AddAttribute(HtmlTextWriterAttribute.Src, strFilename);
writer1.RenderEndTag();

I tried this code to add iframe for each file, but it doesnt show anything in my page.

Need your help...

Requirement : Show pdf files from a folder in asp page.
Posted
Updated 7-Oct-14 0:13am
v5
Comments
KaushalJB 7-Oct-14 6:19am    
You mean to say load All pdf files at a time in different tabs ?? or by selecting single pdf file from your folder location ?
Am Gayathri 7-Oct-14 7:38am    
not in different tabs
Same page with scroll bar

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900