Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't Refresh Parent Page!!!

Status
Not open for further replies.

quinnipiac0807

Programmer
Oct 25, 2004
38
US
I've been working with this problem for a while but have been unable to come up with a solution that works. I have a parent page called CustodianView.aspx and a child page called DeleteCustodianAssignment.aspx. I use an image button to get from the parent page to the child page, then an ok/cancel button to get back to the parent page. I need a way to refresh a datagrid on the parent page when you click ok. What the ok button does is delete an item in the datagrid, which is the reason I need to refresh it. The delete works b/c if you refresh it manually it is correct, but I want it to refresh when you click ok. I've tried a bunch of different way with no luck. Can anyone explain to me how to do this or have any examples or anything?

Any help is always apreciated. Thanks again in advance.
 
This is what I'm using on the Child page. Just thought I'd show you what I was using. hRefRoster is a hidden text box on my form on the parent page. ON the hidden parent page there is code that sees if the value is 1, then resets it to 0, which is the default. So the first line sets hRefRoster to 1. But it's not working.

Response.Write("<script language=javascript>parent.opener.frmITDCustodianView.hRefRoster.value = '1';</script>");

Response.Write("<script language=javascript>parent.opener.frmITDCustodianView.submit();</script>");

Response.Write("<script language=javascript>parent.opener.frmITDCustodianView.close();</script>");
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top