我正在使用 ajaxtoolkit 来制作一个弹出窗口,用户可以在其中与服务器控件进行交互。这是一个简单的实现:
<asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="Server" />
<asp:Button ID="Button1" runat="server" Text="Button" />
<ajaxToolkit:PopupControlExtender ID="PopEx" runat="server"
TargetControlID="Button1"
PopupControlID="Panel1"
Position="Center" />
<asp:Panel ID="Panel1" runat="server">
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="SqlDataSource1" DataTextField="AppName" DataValueField="PK_Application"></asp:DropDownList>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ApplicationServices %>" SelectCommand="SELECT [AppName], [PK_Application] FROM [Application]"></asp:SqlDataSource>
</asp:Panel>
它似乎工作正常,但是当我按下按钮时,面板闪烁打开然后消失,我无法与之交互。我该如何解决?