Click here to Skip to main content
15,914,250 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to update grid in a web page after inserting data into db from a popup window without refreshing page through jQuery.


amyone can help me in this case.!
Posted
Updated 31-Jan-11 1:03am
v2
Comments
Sunasara Imdadhusen 31-Jan-11 7:03am    
You need to rebind only Gird with help of Update Panel.
Zia Ullah Khan 31-Jan-11 7:08am    
but let me know how the grid will update without page refresh after closing the popup window, i need that after closing the pop window the grid should be updated without refreshing too.

1 solution

Two ways that I can think of.
1) Have the grid inside an ASP.NET Update Panel and refresh this after closing the popup.
2) Use an AJAX query to retrieve data and refresh on the client-side.

This should help with #1, http://weblogs.asp.net/jeffreyzhao/archive/2008/04/26/refresh-the-updatepanel-using-javascript-code.aspx[^]

#2 could be more complicated depending your circumstances.

If you are using, or can use, ASP.NET 4.0, this might be an option, http://msdn.microsoft.com/en-us/magazine/ee819084.aspx[^]
 
Share this answer
 

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