Closing modalpopupextender on button click

0

I'm using a modalpopupextender with C # .NET. When I click the button in my gridview, it calls the popup to edit the required information. When I click on the update or cancel, nothing happens! It's like he does not see codebehind!

    
asked by anonymous 06.03.2014 / 15:08

2 answers

1

Hello,

If I understand your doubts, to close "Cancel" use the CancelControlID property of ModelPopup, enter the Cancel button ID, it's the easiest way without programming for it. For Refresh, use the OkControlID property, so you program the "Refresh" button so that information goes to the bank, while the OkControlID property ModelPopup closes the Model. To show the user that the update has been done, you can leave a Label right on the page instead of leaving it in the Model for the user to see.

    
17.03.2014 / 16:02
-1

If the case is to close the Modal, hide your modal in the click event of the button:

SeuModal.Hide();
    
12.03.2014 / 03:57