473,426 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,426 software developers and data experts.

Refreshing a Parent page from Popup window

26
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...
May 19 '09 #1
4 4353
sagark
12
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.location;
window.opener.location = strLocation;

It will refresh parent page.
May 19 '09 #2
maliksleo
115 100+
@Ria12
use this java script
Expand|Select|Wrap|Line Numbers
  1. <script language="javascript" type="text/javascript">
  2. function refreshparent()
  3. {    
  4.     window.opener.history.go(0);
  5.     window.close();
  6. }
  7.  
  8. </script>      
and on the click event of the save or update button do your updation and then call this function

maliksleo
May 19 '09 #3
Expand|Select|Wrap|Line Numbers
  1. <script language="JavaScript">
  2. <!--
  3. function refreshParent() {
  4.   window.opener.location.href = window.opener.location.href;
  5.  
  6.   if (window.opener.progressWindow)
  7.  
  8.  {
  9.     window.opener.progressWindow.close()
  10.   }
  11.   window.close();
  12. }
  13. //-->
  14. </script>
<removed links>
May 20 '09 #4
Ria12
26
hi...maliksleo thanks for ur help...your code help me out.
May 29 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Jamie Jackson | last post by:
The crux of the problem is I only know if the popup *has been* opened, but not if it *is* open. Therefore, the script doesn't know whether to simply refocus, or whether to popup a fresh window. ...
2
by: Bill S. | last post by:
Hey, I am trying to figure this out. The hyperlinks on my page open up a small popup window. I have no reason to refresh the parent page or what have you. I was living in a very happy world,...
1
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at...
1
by: Jennyfer J Barco | last post by:
Hello I have a datagrid and a linkbuttom in the datagrid that says Picture, every time I click on the link "Picture" my program opens a popup window showing a picture of the item the selected and...
1
by: dana lees | last post by:
Hello, I am developing a C# asp.net application. I have a page in which there is a dropdown of users. I have another popup window in which i can add/update the users list. After...
1
by: =?Utf-8?B?bWF2cmljazEwMQ==?= | last post by:
Hi, I have a page which has some custom controls. The page works fine and doesn't break on any number of refreshes. There is button on the page, that starts a new child window. After doing any...
0
by: Bali | last post by:
Default.aspx is the starting page containing a control(ascx) which has asp:button control on it. On the button click event it has to open a new page as a modal control. Since refreshing a page in...
1
by: Bali | last post by:
Default.aspx is the starting page containing a control(ascx) which has asp:button control on it. On the button click event it has to open a new page as a modal control. Since refreshing a page in...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.