Click here to Skip to main content
11,412,182 members (58,565 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET C#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 18:24pm
PBGuy1.8K
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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  
v2
Comments
manognya kota at 7-Nov-12 0:21am
   
5'ed
shabari7 at 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)

  Print Answers RSS
0 OriginalGriff 348
1 Sascha Lefévre 175
2 ProgramFOX 130
3 Maciej Los 110
4 Sergey Alexandrovich Kryukov 105
0 Sergey Alexandrovich Kryukov 8,980
1 OriginalGriff 7,263
2 Maciej Los 3,500
3 Abhinav S 3,248
4 Peter Leow 3,059


Advertise | Privacy | Mobile
Web03 | 2.8.150414.5 | Last Updated 7 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100