Harold Sota
Harold Sota

Reputation: 7566

Gridview inside a ModalPopUpExtender causes ModalPopUpExtender to close

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

Answers (2)

CAK2
CAK2

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

TheGeekYouNeed
TheGeekYouNeed

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

Related Questions