Reputation: 7566
I have a gridview inside a ModalPopUpExtender, the grid view have the button add delete and edit when i clic one of the button of the gridview the popup is closed. I wont to close the popup when the close button is clicked. This is the asp.net part:
< cc1: ModalPopupExtender ID="NamePopup" runat="server" PopupControlID="OptionPanel" TargetControlID="btnD" BackgroundCssClass="mpBg" DropShadow="true" OkControlID="btnSavePopup" CancelControlID="btnPostCancel" >
< / cc1:ModalPopupExtender>
Any ideas??
Upvotes: 2
Views: 4007
Reputation: 2000
You can get your popup panel to persist by calling ModalPopupExtender.Show()
method from inside the server-side methods that handle postbacks from controls inside your popup panel.
Upvotes: 2
Reputation: 7539
The click is triggering a Page Load, even though you're using the Ajax Controls.
Look at the last post here for one person's solution. Use google if that won't work for you.
Upvotes: 2