Gridview inside ModalPopUpExtender causes ModalPopUpExtender to close

I have a gridview inside ModalPopUpExtender, in grid view the button adds delete and edit, when I clic one of the gridview button, the popup is closed. I want 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?

+2


a source to share


2 answers


A click starts the page load even if you are using Ajax controls.



Look at the last post here for one person's solution. Use Google if that doesn't work for you.

+2


a source


You can get the popup to save it by calling a method ModalPopupExtender.Show()

from server side methods that handle callbacks from controls inside your popup.



+2


a source







All Articles