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
 

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