i had binding some data to gridview in a page loadevent…..
And the gridview is in update panel..
i had included a Button in Each row of gridview using template field..
Every thing is working fine, But when i click on Button i am assigning a Row content’s to a labels which is outside the update panel…
But this is not happening……
The Code Snippet inside the Button is working fine!!!!!
Because it was working good before the use of Update Panel…….. Since the Whole page was Posting to a server to avoid this i used Update Panel..
But it is arrising another problem..
Can any Suggest how can i get out this kind of problem!!!!!!!!!!!
Thank in Advance!!!!
When you generates a postback inside an UpdatePanel, by default, only the content within the panel is updated. That’s the magic of the UpdatePanel 🙂
You’ll need to include the labels you want to modify inside the same update panel the grid is or wrap them on a separated UpdatePanel and update it if the grid panel get updated.
Here you have a sample about how to trigger the update of a second update panel.