Eric
Eric

Reputation: 8078

How can I reload a gridview onclientclick of another gridview's button?

I have a modal popup that contains a gridview. On the click of a button inside of a grid i reload the gridview with the data that depends on the id of the row clicked in the gridview. I would have like to reload the gridview onclientclick but I couldn't find a way to do that. Is it possible to reload a gridview client-side without the user even knowing the page partially loaded?

Upvotes: 0

Views: 1882

Answers (2)

Johan Leino
Johan Leino

Reputation: 3533

Have a look at what Matt Berseth is doing with gridview/detailsview, it might be of some help to you.

http://mattberseth.com/blog/2008/04/masterdetail_with_the_gridview.html

Upvotes: 1

Eoin Campbell
Eoin Campbell

Reputation: 44288

Why don't you wrap your GridView & Button, in an updatePanel, inside the ModalPopup.

That way, your _click still fires and still updates the gridview but you won't experience a full page postback/submit.

Upvotes: 0

Related Questions