Click here to Skip to main content
Sign Up to vote bad
good
See more: ASP.NETC#4.0
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 6 Nov '12 - 17:24


2 solutions

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.
  Permalink  
Comments
manognya kota - 7 Nov '12 - 0:21
5'ed
shabari7 - 8 Nov '12 - 0:45
Thank u

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 508
1 Arun Vasu 275
2 Maciej Los 228
3 OriginalGriff 215
4 Rohan Leuva 176
0 Sergey Alexandrovich Kryukov 9,670
1 OriginalGriff 7,409
2 CPallini 3,968
3 Rohan Leuva 3,352
4 Maciej Los 2,861


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 7 Nov 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid