parent window and chlid window

bsarahim used Ask the Experts™
I have ajax tab. in one of the ajax tab.. I m having this link and the gridview

  Dim i As Integer = Session("Productid")
<div class="first last">("onclick", "javascript:OpenWin('" + i.ToString + "')")

 <script type="text/javascript">
       //window.onload = parent.frames(0).document.getElementById('lblMenuTitle').innerHTML  = 'Location'        
       function OpenWin(id) {
           var url = 'RelatedProducts.aspx?ID=' + id
 , 'newWindow', 'width=600,height=200,scrollbars=yes')
           return false;

where it popups a new window.. I will select the records and save it, once it is saved
the window will get closed

 Page.ClientScript.RegisterStartupScript(Me.GetType(), "close", "<script language=javascript>window.opener.location.href = 'simpleadd.aspx';self.close();</script>")

But the problem here.. I dont want to refresh my whole page(parent page)..
rather than im looking to refresh only certain portion, where add new records can be displayed in the gridview. Thanks
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2011

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial