Click here to Skip to main content
14,641,347 members
Rate this:
Please Sign up or sign in to vote.
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


It refreshes the whole page I want only the grid view to get refreshed.
Rate this:
Please Sign up or sign in to vote.

Solution 1


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.
manognya kota 7-Nov-12 0:21am
[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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100