Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,How can i update a grid and just a grid after returning from a popup window.
Now when i back from popup window with below codes, the whole page is refreshed and all the information reset!!!
C#
Response.Write("<script>window.opener.location.href = window.opener.location.href;</script>");
Response.Write("<script>self.close();</script>");

I want to refresh grid because somethings changed in popup window.

My problem is that when the popup window is closed, the whole page is refreshed so i loose all information that i load before.
How can i prevent the whole page refreshed?
Posted
Updated 21-Jun-13 20:55pm
v2
Comments
Rockstar_ 21-Jun-13 4:51am    
Use Updatepanel to refresh only Gridview
Rajesh Anuhya 21-Jun-13 5:47am    
Hi Rockstar you can post this as a Solution
--RA

1 solution

Try UpdatePanel. It will refresh only some portion of the web page.

There are many examples out there. You can refer to this..http://msdn.microsoft.com/en-us/library/bb399001(v=vs.100).aspx[^]
 
Share this answer
 
v2
Comments
Rajesh Anuhya 21-Jun-13 5:47am    
Hi Sruthi, Good answer, but try to add a reference link.
--RA
Sruthi Jain 21-Jun-13 5:50am    
Rajesh, good :) I have updated the solution.
Rajesh Anuhya 21-Jun-13 5:53am    
Good Keep it up, and Welcome to Codeproject.
Sruthi Jain 21-Jun-13 5:58am    
Thank you.

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