iframe as server control

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
 
C

Craig Deelsnyder [MVP]

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

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top