I am trying to use a modalpopup to display an error message
1. When I add the modalpopupextender and hidden button, none of my Ajax control display on the page, when I delete them they all appear.
2. When I can get the modalpopup to display, it never works from codebehind, I use MdlPopupID.Show() and it has never shown up.
I like the functions and features but since I have never gotten them to work properly, I have stopped using modalpopups, even though I want to.
<asp:Button ID="BtnErrorMessagePopup" runat="server" Text="" Visible="false" /><ajx:ModalPopupExtender ID="MdlErrorMessage" runat="server" BackgroundCssClass="bg-modal" OkControlID="BtnErrorMessageClose" TargetControlID="PnlErrorMessage" PopupControlID="BtnErrorMessagePopup" /><asp:Panel ID="PnlErrorMessage" runat="server" CssClass="error-message" style="display:none"><asp:Label ID="ErrorHeading" runat="server" Text="" CssClass="head"/><div class="content"><asp:Image ID="ErrorImage" runat="server" ImageUrl="~/Content/images/icons/icon_alert_24wx24h.gif" /><asp:Label ID="ErrorStatement" runat="server" Text="" /><asp:Label ID="ErrorMessage" runat="server" Text="" CssClass="main-message" /></div><asp:Button ID="BtnErrorMessageClose" runat="server" Text="CLOSE" /></asp:Panel>
I don't see antything wrong here