Writing String Data into an Iframe from codebehind ASP.net

G

Guest

Hi All,

Could anyone help me in resolving this issue?
I have an Iframe on my aspx page and I want to insert a String value into that
through the code behind.I dont want to use the src attribute of the Iframe.

Thanks in advance.

Regards,
Vidds
 
G

George Ter-Saakov

If you do not want to use src then the only option is to use Javacript.
Let say your IFRAME has id="myframe"
then something like that should work

getElementByID("myframe").document.write('Hello world');


George
 
B

bruce barker

this can be done with rendered javascript. set the src to a blank html
file (we used to use about but ie has a bug and causes a dialog with
https). set up a unload event handler to the iframe, then javascript can
update the dom in the frame.

-- bruce (sqlwork.com)
 

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

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top