Click here to Skip to main content
15,919,358 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to refresh/update gridview in parent page without refreshing entire parent page?

Soon after I add/update details in ajax modal pop up, I have to update the records in gridview in parent page. I want this to happen with out entire page refresh.


in the button click event I just registered the client script with statement

parent.docuemnt.forms[0].submit();

It refreshes the whole page I want only the grid view to get refreshed.
Posted

Hello,


You can use ajax update panel for this purpose.

Put your grid inside update panel. And place a button and on the button's click event reload the grid.

Now when the popup is closed, from the java script , fire the button's click event.

As the button and grid are inside the update panel, on its click only the update panel's contents will be refreshed and the full post back will not occur.

Hope this gives you some idea.
 
Share this answer
 
v2
Comments
manognya kota 7-Nov-12 0:21am    
5'ed
[no name] 8-Nov-12 0:45am    
Thank u

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