Control Panel
Forum
Hosting Help
ASP.NET 4 & SQL 2008 R2 Hosting
Resources
Notice
Login
Members
Shared Hosting
|
Upgrade
|
Advertise
|
Tutorials
|
AdSense revenue sharing sites
|
Exam 70-680 Practice Tests
|
Silverlight games
Total
members
:
210368
Average new registrations per day (in last 7 days):
16
New Registration:
Open
Register Now
Home
»
Resources
»
How to access parent window controls from an iFrame
ASP.NET
ADO.NET
Web Services
Remoting
Visual Studio 2005
Error Bank
Interview Questions
Tips & Tricks
XML
HTML
Jscript/Javascript
IIS
Windows
General
Submit Resource or code snippet
... and get
surprise gifts
Win Digital camera, ASP.NET Books, Free softwares!!
How to access parent window controls from an iFrame
10 Feb, 2009
Author:
Fernando Rocha
Summary
This code snippet shows how to access parent window controls from an iFrame and how to refresh the parent window.
.NET Classes used :
Sometimes it is very useful, specially when dealing with PopUps, to access parent window controls. When the PopUp changes the database, it is very useful too being able to refresh the whole parent window.
To access parent window controls:
parent.control_client_id
For instance, to hide the popup:
parent.popupProject.Hide();
To refresh the parent window we can do:
parent.location.reload();
This works in Opera, Mozilla and IE.
Hope you enjoyed. :)
Best Regards
Feedbacks about this page from members:
- No Feedbacks yet !! -
Submit Feedback
View All Feedbacks
Advertise
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies Pvt Ltd.
All Rights Reserved.