.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

How can i refresh the parent window of a webpage ?

Posted By:      Posted Date: September 24, 2010    Points: 0   Category :ASP.Net

Hi all,

I have tried lot of different methods to refresh the parent webpage of a pop up window.

All of my methods failed for the moment using javascript .

Basically i am opening a new window from a Sharepoint webpage.

When I click "submit" on the op up window the sharepoint webpage should be refresh.

So far i have to do manually F5.

How can i 4refresh the parent webpage  ?

View Complete Post

More Related Resource Links

Refresh parent window and close popup window.


Hi All,

I've been spent the last couple hours trying to work on this issue. I an creating Facebook Oauth stuff, when i click on parent window. The popup shows the Facebook login, when i logged in with my details, it redirects to my site. But i need to close this popup after returning and refrsh the parent window.

can you please provide me this kind of stuff. i already spent whole day in this... Sealed Cry

If i could solve this then i will go for another logic but stucked on 1st step.



Refresh aspx parent Page after closing pop up window

Hello I have a problem with  Refeshing Parant Page  After Closing POPUP. Actually case is i opened POPup.aspx(aspx-Page) on another Profile.aspx page, and i want refresh Profile.aspx after closing   PopUp.aspx. I aleady use this thing but it didnt work..1)window.opener.location.reload();2)window.parent.refresh() 3)window.parent.reload()any one have idea abt this .. plz help me 4 this..

way of calling "javascript function of parent window from child window."

The article way of calling "javascript function of parent window from child window." was added by raja.s on Sunday, June 06, 2010.

Hi,Here i am going to explain how to call the javascript function of a parent window from the child window(pop-Up).Some may know before reading this post.Parent Java Script Function:script language="Javascript" type="text/javascript">

Refresh Parent on Pop Up Closed


This has probably been answered before but I was looking at some various posts but the needs I am trying to meet just don't see to work.

So here is the scenario:

User clicks the button and a javascript I have registered opens a pop up window and passes a query string

User then is presented with a gridview with a selection to make (the selection event is triggered again through javascript and mouseover event)

The data is updated in the table for the data being displayed in the parent which is all fine

When the page is done with this it closes and refreshes the parent


Now the problem:

All of this works fine up until the point that I close the window and after playing around with different snippets I have come across I just can't get the thing to refresh the parent properly because when I do the refresh I need to pass the current querystring as follows:

        Dim cScript As String
        cScript = "<script language='javascript'> opener.location.href = 'Workstations.aspx?ClientID=' & MyGUID & '&AddNew=' & 'False' & '&WksID=' & WksID'; </script>"
        Page.ClientScript.RegisterStartupScript(Me.GetType(), "parentwindow", cScript)

Refresh Parent Page


i having a grid and in a grid i have a template feild column called Edit Comment's

as soon as user click on edit comment's a pop up window gets open and user can add the following comment's

and click ok to save

now on my OK Button i have implemented my code to close down the Pop up

but only this is that the changes which are being made are not being displayed untill i referesh the browser

so is there a way where i can refresh my parent page from child popup page

thank you

Parent window does not get reloaded - Permission denied error

Hi, When a button from a web form (say parent) is clicked I am opening another form(say child). And once the child completes its processing, it has to reload the parent form and close itself. For this I am calling the below javascript in the child form: function CloseMe() {     window.opener.location.reload(true);    self.close();    } But when the browser tries to execute this javascript code, it fails and throws Permission denied error. Here, the parent and child forms are from different domains. Please throw somelight on this. Thanks!  

i make a web site using frame . A.Text box is in parent window . but i want when frame is load(fram

i make a web site using frame . A.Text box is in  parent window . but i want when frame is load(frame window Coding ) then parent window text is changed l(1)suppose parent window Text. is a when child widow is load thenparent window Text. is b

need help to do a window/ui refresh

I'm working on a feature, Undo. I have a problem, when i made a ui object movement (changing their margin), then i revert back the changes, make them go back to where they are, a weird ui gray cover pop up. if i toggle/change the window and come back to the window, the cover is gone, things as expected. i try to do invalidatevisual/updatelayout over the window object, incoperate with Dispatcher, trying to do the ui refresh at different thread priority (tried Render, Input, Background), doesn't work then i tried DispatcherTimer, to do the refresh after 1.5k milliseconds later, still no good. anyone had idea? here's the ui of what happened (4 pictures: x1, x2, x3, x4.jpg) http://cid-e6666d4e95ba2779.photos.live.com/browse.aspx/Work%20Related/wpf%20and%20ribbon%20window%20craps%2001

How to refresh WPF window NonClient Area

Hi Buds,     How we can refresh WPF window Non client area after done the ExtendFrame through Window Interop services??? I have extended the Window framework by the follwoing snippets. I need to refresh the whole window after this operation..  having any idea????? DwmExtendFrameIntoClientArea(hWnd,ref pMargins);        Regards, Suresh

Call parent window Page_Load when child closes

 I have a popup window that I open using  window.showModalDialog('Popup.aspx'); The client enters some information and then clicks a 'Save' button on the Popup window.  At that point I want the popup window to close and refresh the parent window which I though would execute the page_load event on the parent window. Here is the code that I have for the button click on the popup window. window.returnValue = true; window.close(); The popup window closes and it seems like the parent refreshes, but the page_load event on the parent is not called.  I put in a breakpoint to verify.  I need the page_load event to execute.   Thanks in advance for your help, JZ

Refresh Parent Page List after Edit Item Modal Dialog Save/Close

I am calling the Edit Item URL (EditForm.aspx?ID=x&IsDlg=1) via javascript code to bring up the Edit Item Modal Dialog. This works fine and dandy. But what callbackfunction should I invoke after the Save so that the parent list is refreshed? Is there a better way to do it than call reload on the entire parent frame? It almost looks like there should be a way to refresh just the list. Any help appreciated. Thanks, Jake.

Refresh parent page in iframe

Hi all, can I refresh a parent page by his inside iframe?

I want to open a web page (.aspx page,child window from parent window) without titlebar how can we d


Hi All,

i have some special requirement like , i want to open a web page (child page) without a title bar for this i am following the below approach but it is not working, to open child window from parent window i am calling this javascript function to the of href of anchor tag...

function OpenChildWindow()

but the child window is opened with titlebar, but i don`t want any titlebar.

the titlebar property i was used in the above method is not working why?

how can we do this, can anybody help me...


Burepalli V S Rao.

Send values to parent window on gridview click event


Hello all,

I have a form, which contains 2 textboxes. When i click on the first textbox, i have to open a child window (tool), that contains a gridview control with 2 columns (corresponding to the 2 textboxes). When the user clicks on any row in the gridview, it should send back the 2 column values back to the parent window to the corresponding 2 textboxes. Can anyone help me on how do i achieve this?

I can open the child window and get back the values using window.opener method in JS. 

But can anyone help on how to bind the JS code to the onClick of every row in the gridview. How can i activate the OnClick event of every row/alternating row item of the gridview and bind the JS code and pass each column value to that JS method? The no of columns in the gridview can vary depending upon the data? So in that case, i have to have a collection to be passed to JS code that can contain n number of column values.

Please help.

i want to disable the entire parent window when the child window is opened?



 i am using the master page from the master page i am opening the child window.so, when ever i opened the child window i want to disable the entire parent window(all the controls present in the parent page) .how can we do it.


Burepalli V S Rao.

Slightly different issue: SetFocus from control to WPF parent window in C#...


I've just spent about an hour seaarching for something that should be easy to find with the question: How to set focus on a WPF window.

I have a StatusBar item. When the mouse leaves that item, I need to set the focus back to the StatusBarItem's parent window.

I've tried everything I can think of.  Sorry to be so dense, but I am still a WPF/C# newbie.

Please advise.


-- Mike

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend