iframe source on the fly

T

Tim H

Hey there. In my app, I was rendering my report in PDF, then creating the
html for my iframe object and then doing a response.write and writing that
text. However, I need to place the iframe object before I render the
report. How can I set the iframe's src property in code behind?
Thanks again

Tim Heuer
(e-mail address removed)
 
J

Jason DeFontes

<iframe id="theFrame" runat="server"></iframe>

in code behind...

theFrame.Attributes.Add("src", "path/to/your/file.pdf");

-Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top