Avatar of 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")
<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;

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

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck