Writing String Data into an Iframe from codebehind ASP.net

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
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)
 
Back
Top