Link to home
Start Free TrialLog in
Avatar of bsarahim
bsarahim

asked on

parent window and chlid window

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
ASKER CERTIFIED SOLUTION
Avatar of dj_alik
dj_alik

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial