By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,592 Members | 1,958 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,592 IT Pros & Developers. It's quick & easy.

iframe source on the fly

P: n/a
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
he****@Comcast.net
Nov 18 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
<iframe id="theFrame" runat="server"></iframe>

in code behind...

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

-Jason

Tim H wrote:
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
he****@Comcast.net

Nov 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.