Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to Refresh the parent page while the child page is closed

Reply
Thread Tools

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

 
 
muthu
Guest
Posts: n/a
 
      04-07-2006
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.........

 
Reply With Quote
 
 
 
 
MS
Guest
Posts: n/a
 
      04-07-2006
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) 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.........
>



 
Reply With Quote
 
 
 
 
muthu
Guest
Posts: n/a
 
      04-07-2006
Hi,

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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If a class Child inherits from Parent, how to implementChild.some_method if Parent.some_method() returns Parent instance ? metal Python 8 10-30-2009 10:31 AM
How to close all the child windows when parent window get closed? zEE ASP .Net 1 04-25-2006 09:01 AM
close child form when parent form is closed. =?Utf-8?B?UGF1bA==?= ASP .Net 2 11-24-2004 10:31 AM
parent window know when a child window is closed Kiki Javascript 3 07-28-2004 02:55 PM
Pass from parent to child, then update parent with child value... Noel Dolan Javascript 0 07-18-2004 05:52 PM



Advertisments