Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / July 2007

Tip: Looking for answers? Try searching our database.

Writing String Data into an Iframe from codebehind ASP.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vidds - 27 Jul 2007 14:06 GMT
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
George Ter-Saakov - 27 Jul 2007 16:30 GMT
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

> Hi All,
>
[quoted text clipped - 8 lines]
> Regards,
> Vidds
bruce barker - 27 Jul 2007 16:30 GMT
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)

> Hi All,
>
[quoted text clipped - 6 lines]
> Regards,
> Vidds

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.