IFRAME reference in code-behind?

  • Thread starter Thread starter Andreas Heusler
  • Start date Start date
A

Andreas Heusler

Is it possible, in code-behind, to get a handle to an IFRAME on an aspx
page, so the IFRAME's src property can be set by server-side code?
Thanks
AH
 
Haven't specifically tried an IFrame, but it should be possible to access
any HTML object/tag in your document as long as you mark that tag with
RUNAT=SERVER
 
I did something similar to this using a Literal control, the literal will
contain all the iframe html code. You can modify the literal's output from
the code behind before the page renders.
 

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

Back
Top