Refreshing a Parent page from Popup window

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ria12
    New Member
    • Feb 2009
    • 26

    Refreshing a Parent page from Popup window

    hi...
    I have grid in my Parent page on clik of gridview Edit column it open a Popup window fill all records for updation.But I have problem when user update a record popup window is not closed and also not refreshing Parent page..any body help me...
  • sagark
    New Member
    • Jan 2009
    • 12

    #2
    You need to write javascript code in the popup window page for this. On click of some button or on some event, write code something like this,

    strLocation = window.opener.l ocation;
    window.opener.l ocation = strLocation;

    It will refresh parent page.

    Comment

    • maliksleo
      New Member
      • Feb 2009
      • 115

      #3
      Originally posted by Ria12
      hi...
      I have grid in my Parent page on clik of gridview Edit column it open a Popup window fill all records for updation.But I have problem when user update a record popup window is not closed and also not refreshing Parent page..any body help me...
      use this java script
      Code:
      <script language="javascript" type="text/javascript">
      function refreshparent()
      {	
      	window.opener.history.go(0);
      	window.close();
      }
      
      </script>
      and on the click event of the save or update button do your updation and then call this function

      maliksleo

      Comment

      • Srikanth Chippa
        New Member
        • May 2009
        • 4

        #4
        Code:
        <script language="JavaScript">
        <!--
        function refreshParent() {
          window.opener.location.href = window.opener.location.href;
        
          if (window.opener.progressWindow)
        		
         {
            window.opener.progressWindow.close()
          }
          window.close();
        }
        //-->
        </script>
        <removed links>
        Last edited by Frinavale; May 20 '09, 03:32 PM. Reason: Added code tags and removed advertising links. Please post code in [code][/code] tags. Refrain from posting links to advertisments, this is against forum policy.

        Comment

        • Ria12
          New Member
          • Feb 2009
          • 26

          #5
          hi...maliksleo thanks for ur help...your code help me out.

          Comment

          Working...