parent window and chlid window

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

  Dim i As Integer = Session("Productid")
                LinkButton5.Attributes.Add
<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
           window.open(url, 'newWindow', 'width=600,height=200,scrollbars=yes')
           return false;
       }
    </script>




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
Comment
Watch Question

Do more with

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

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