Is this possible to refresh another web page from one webpage
-
hi friends, i am uploading file to the database from a popup page.after pressing the button "Attach" i inserting the document into database and closing the window by using javascript.now i want the parent page to be refreshed.because on that page only the attachment details is listed in datagrid.if it is refreshed then the datagrid will load with updated values.if anyone knows this please help me immediately.
-
hi friends, i am uploading file to the database from a popup page.after pressing the button "Attach" i inserting the document into database and closing the window by using javascript.now i want the parent page to be refreshed.because on that page only the attachment details is listed in datagrid.if it is refreshed then the datagrid will load with updated values.if anyone knows this please help me immediately.
self.opener.location.reload()
orparent.location.reload()
Vasudevan Deepak Kumar Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/ -
self.opener.location.reload()
orparent.location.reload()
Vasudevan Deepak Kumar Personal Web: http://vdeepakkumar.netfirms.com/ I Blog At: http://deepak.blogdrive.com/hi vasudevan deepak kumar, the code i done given here. '''''''''''''''''''''''''''''''''''''''''''' these areas are inserting values into databases in button click event '''''''''' Dim strscript As String = "" strscript += "self.opener.location.reload()" 'strscript += "parent.location.reload()" strscript += "self.close()" strscript += "</" + "script>" RegisterClientScriptBlock("anything", strscript) Problem: but this is not working. i don't know y. can u please help me. </x-turndown>
-
hi vasudevan deepak kumar, the code i done given here. '''''''''''''''''''''''''''''''''''''''''''' these areas are inserting values into databases in button click event '''''''''' Dim strscript As String = "" strscript += "self.opener.location.reload()" 'strscript += "parent.location.reload()" strscript += "self.close()" strscript += "</" + "script>" RegisterClientScriptBlock("anything", strscript) Problem: but this is not working. i don't know y. can u please help me. </x-turndown>
Separeate the statements with semicolon. Use window instead of self. Use a parameter in the reload method to force reload of the page rather than just redrawing the page from the browser cache.
Dim strscript As String = "<script type=""text/javascript"">" strscript += "window.opener.location.reload(true);" strscript += "window.close();" strscript += "</script>" RegisterClientScriptBlock("anything", strscript)
--- b { font-weight: normal; } -
Separeate the statements with semicolon. Use window instead of self. Use a parameter in the reload method to force reload of the page rather than just redrawing the page from the browser cache.
Dim strscript As String = "<script type=""text/javascript"">" strscript += "window.opener.location.reload(true);" strscript += "window.close();" strscript += "</script>" RegisterClientScriptBlock("anything", strscript)
--- b { font-weight: normal; }hi guffa, i had use this code, but the following message displays and the refresh is not happening. msgbox message: "The page cannot be refreshed without resending the information click retry to send the informatyion again, or click cancel to return......." requirement: basically my recuriment is. i am having grid to show the file names, if the user wants to atttach a file then he click the "Attachemnts" button.then the popup window come. there he select a file and click the button attach.after pressing the button the popup window has to be closed and the parent window should be reloaded to show the latestfile names.can u please help me for this.
-
hi guffa, i had use this code, but the following message displays and the refresh is not happening. msgbox message: "The page cannot be refreshed without resending the information click retry to send the informatyion again, or click cancel to return......." requirement: basically my recuriment is. i am having grid to show the file names, if the user wants to atttach a file then he click the "Attachemnts" button.then the popup window come. there he select a file and click the button attach.after pressing the button the popup window has to be closed and the parent window should be reloaded to show the latestfile names.can u please help me for this.
That is beacuse the page is the result of a form post. To reload it without getting the message, you either have to set the location of the page or make the form do a postback.
window.opener.location = window.opener.location.href;
orwindow.opener.document.NameOfTheForm.submit();
--- b { font-weight: normal; } -
That is beacuse the page is the result of a form post. To reload it without getting the message, you either have to set the location of the page or make the form do a postback.
window.opener.location = window.opener.location.href;
orwindow.opener.document.NameOfTheForm.submit();
--- b { font-weight: normal; }