Popup Model Extender in asp.net release

I successfully added controls to pop up, like many checkboxes ... now an event is checked in the checked box. I want to show other checkboxes in the same popup. how can i do this, can someone help me?

+3
source share
3 answers

Make sure auto-repeat is true and wrap them in an updated panel inside the modal. Now you can show / hide anything you want after the postback without modal closure.

+1
source

() ? javascript onClick, .

, autopostback true OnCheckedChanged.

<asp:CheckBox AutoPostBack="true" runat="server" ID="chk1" OnCheckedChanged="chk1_OnCheckedChanged" />

protected void chk1_OnCheckedChanged(object sender, EventArgs e)
{ 

}

.

<ajaxtoolkit:modalpopupextender runat="server" ID="mpe"
    BehaviorID="mpe_ID" PopupControlID="pnlModalPopup"  
    TargetControlID="btnSomething" CancelControlID="lnkUploadSongListOverlayClose"
    DropShadow="false" />

<asp:Panel runat="server" ID="pnlModalPopup" CssClass="modal">
<asp:UpdatePanel runat="server" ID="updatePanel">
<ContentTemplate>

   <!-- modal popup control -->

</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
+1

Here are the steps:

1- Set auto repeat back for the checkbox to true 2- Double-click on the checkbox and check the box 1_OnCheckedChanged

    if(checkbox1.Checked==true){Modalpopupextender.show();}
0
source

Source: https://habr.com/ru/post/1755733/


All Articles