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.
 
Back
Top