Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can we place gridview in iframe in asp.net??
and when javascript model popup close gridview should reload the data from sqlserver ..
I have gridview with view button .It opens modal popup(Javascript)where
user can add as many records as he/she wants and when close modal popup
Gridview should reload the data from sqlerver...

Its working fine on mozilla but not on ie
Help Help Help
Posted

in your popup page use
<javascript>
function closePopup()
{
window.opener.document.location.reload();
/* OR window.opener.document.location.href='myParentWindow.newpage'; */
self.close ()
}
</javascript>




 
Share this answer
 
v2
You can also try this
well i am using this script on my popup.asp page



<body onunload="opener.location=('page.asp')">

where "page.asp" is the page that you want to be refreshed when ur popup window closes.

hope this will prove helpful
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900