如何使用Modal Pop up扩展器

时间:2013-07-11 03:05:58

标签: c# ajax

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

  <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>

1 个答案:

答案 0 :(得分: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>