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 / October 2007

Tip: Looking for answers? Try searching our database.

Refresh parent page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John - 05 Oct 2007 20:04 GMT
I have a pair of parent/child pages and use the following from the child page
to refresh the parent page. But sometimes (most of the time) the parent page
cannot get refreshed.

The child page has a big table that has about 26 rows and two columns. If I
delete the table, I can refresh the parent table, but I need this HTML table.
Please advise. Thanks.

Response.Write("<script language='javascript' type='text/javascript'> {
self.close(); }</script>");
Response.Write("<script language='javascript' type='text/javascript'> {
window.opener.location = 'Default.aspx?Reload=" + IDText.Text + "';
}</script>");
Peter Bromberg [C# MVP] - 05 Oct 2007 20:27 GMT
Try making the call to "self.close()" LAST, not first.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> I have a pair of parent/child pages and use the following from the child page
> to refresh the parent page. But sometimes (most of the time) the parent page
[quoted text clipped - 9 lines]
> window.opener.location = 'Default.aspx?Reload=" + IDText.Text + "';
> }</script>");
John - 05 Oct 2007 21:16 GMT
Thank you very much, Peter. It works.

> Try making the call to "self.close()" LAST, not first.
> -- Peter
[quoted text clipped - 16 lines]
> > window.opener.location = 'Default.aspx?Reload=" + IDText.Text + "';
> > }</script>");

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.