Hi,
The project in which I put ModalPopupExtender DropDownList. Action is that the user selects from a DropDownList s worth it interesting then (PostBack) is displayed which contains the contents of the UserControl WizardControl.
if(DropDownList.SelectedValue == "1")
{
Control uc = LoadControl("/UserControls/control1.asmx");
Panel2.Control.Add(uc);
} else {
Control uc = LoadControl("/UserControls/control2.asmx");
Panel2.Control.Add(uc);
}Up to this point everything is working properly. The problem occurs when I click Next in WizardControl. After clicking above. WizardControl control button disappears: (
<asp:ScriptManager ID="ScriptManager" runat="server"></asp:ScriptManager><asp:UpdatePanel ID="UpdatePanel1" runat="server"><ContentTemplate><asp:Button runat="server" ID="_modalPopUpButton" Style="display: none" /><ajaxToolkit:ModalPopupExtender ID="ModalPopupExtender1" runat="server" TargetControlID="_modalPopUpButton" PopupControlID="Panel1" BackgroundCssClass="modalBackground" CancelControlID="_zamknijButton" Enabled="True"></ajaxToolkit:ModalPopupExtender><asp:Panel runat="Server" ID="Panel1" Enabled="True"><asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged"><asp:ListItem Value="1">First</asp:ListItem><asp:ListItem Value="2">Second</asp:ListItem></asp:DropDownList><asp:Button ID="_closeButton" runat="server" Text="Close" CssClass="Button" /></asp:Panel></ContentTemplate></asp:UpdatePanel>