iframe as server control

  • Thread starter Thread starter Rory
  • Start date Start date
R

Rory

I would like to know if it is possible to set/save an
iframes content in codebehind. I know that you can set an
iframe to runat server, but when i try to access
the .innerHTML property i get nothing. (i understand that
it is because there actually IS nothing inbetween the
tags).

Is it possible to do this, and if so, how?

Thanks
 
You can access its attributes and set those

myIFrame.Attributes("blah") = "value"

etc......so you could set its source page dynamically
 
Back
Top