0

我想要的是单击链接按钮时,面板会弹出。但是当我单击链接按钮时,它什么也不做。帮助!使用模态弹出扩展器的最佳方法是什么?我用错了吗?

  <asp:Panel ID="Panel1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <uc1:AssignTicketControl ID="AssignTicketControl1" runat="server" ClientIDMode="Static" />
    </asp:Panel>
    <asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
     TargetControlID="LinkButton1" PopupControlID="Panel1">
    </asp:ModalPopupExtender>
    <asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>
4

1 回答 1

0

我会安排如下项目

<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:LinkButton ID="LinkButton1" runat="server">LinkButton</asp:LinkButton>
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server"
   TargetControlID="LinkButton1" PopupControlID="Panel1">
 </asp:ModalPopupExtender>
<asp:Panel ID="Panel1" runat="server">
   <uc1:AssignTicketControl ID="AssignTicketControl1" runat="server" ClientIDMode="Static" />
</asp:Panel>
于 2013-07-11T03:14:40.760 回答