473,397 Members | 2,077 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,397 software developers and data experts.

How to Refresh the parent page while the child page is closed

Hi guys,

Iam using vb.net as the code behind for my web application.In
one of the page iam opening a popupwindow from the parent page.In that
popup iam entering some value and submitting.After that if close that
pop up window,the grid view in my parent page should be refreshed.How
can i achieve that.Plz help me out.........

Apr 7 '06 #1
2 3661
MS
Hi,

There are alot of possible solution but it depends in whcat fasion you want
to achieve this... and depends what type of info you are showing on
refreshing the parent page.
if there are few values then onpopup close .. save them to database as well
pass to JS function that is on parent page .. in this way you can refresh
parent without postback or without reloading it.

if there are more values that u need to refresh then
here is one way.... I used somewhere in my projects toooooooooooooooooooo
you can use this code in onclick event of button that you use to save values
from popup
like
onClientClick="myRefreshFun()"
<JS>
function myRefreshFun()
{
window.opener.location.href = window.opener.location.href;
self.close();
</JS>

"muthu" <s.*************@gmail.com> wrote in message
news:11*********************@e56g2000cwe.googlegro ups.com...
Hi guys,

Iam using vb.net as the code behind for my web application.In
one of the page iam opening a popupwindow from the parent page.In that
popup iam entering some value and submitting.After that if close that
pop up window,the grid view in my parent page should be refreshed.How
can i achieve that.Plz help me out.........

Apr 7 '06 #2
Hi,

Thanks.But i tried it already.It throws an error showing that
window.opener is not an object supported.

Apr 7 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Debbie Davis | last post by:
Hi there, I'm not very good at javascript but I'm using the following to close a child window and refresh a parent window after updating a database. It's within an ASP page. CODE <SCRIPT>...
2
by: John Dalberg | last post by:
I have a closed box system which opens an html page. The page closes by the system. I have access to the html page. I added code to open a child window from this page. However when the parent...
2
by: Raj | last post by:
Hi All, I have a problem with trying to refresh the parent window from child window in order to update data in the parent window. The sequence of events are 1) I click a button in the parent...
0
by: Brad White | last post by:
Overview: I have a custom web app that has an 'Inbox' that refreshes every 30 seconds. One user uses Outlook to host the web page. Using IE, the refresh works fine. If the user is working in...
6
by: Edwinah63 | last post by:
Hi everyone, could someone give me some thoughts on the best way to manage mdi parent and child forms? in vb6 i could scroll through the forms collection and determine which forms were...
10
by: Charles Law | last post by:
For some reason, when I click the X to close my MDI parent form, the action appears to be re-directed to one of the MDI child forms, and the parent remains open. I am then unable to close the...
3
by: Opa | last post by:
Hi , I have a form with javasript which launches a popup via the showModalDialog() method. I get the dialog to open, now I am trying to first get a reference to the calling form from the popup...
2
by: srinivasyadavkota | last post by:
Hi Experts here, Pls help. I have opened the child window from the parent window.How to refresh the parent window when the child window is closed. Please help me. Thanks and Regards,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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...

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.