【问题标题】:Error using ajax update panel control in ASP.NET [duplicate]在 ASP.NET 中使用 ajax 更新面板控件时出错 [重复]
【发布时间】:2015-05-25 14:20:00
【问题描述】:

我尝试使用 ImageButton 和日历制作日期选择器,以避免屏幕闪烁我使用 ajax 更新面板控件,但出现了一些错误,它说“ID 为 'UpdatePanel1' 的控件需要页面上的 ScriptManager。ScriptManager必须出现在任何需要它的控件之前。”

这是我的代码

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
 <ContentTemplate>
     <asp:Calendar CssClass="form-control" ID="Calendar1" runat="server" OnSelectionChanged="Calendar1_SelectionChanged"></asp:Calendar>
     </ContentTemplate>
</asp:UpdatePanel>

【问题讨论】:

    标签: asp.net ajax


    【解决方案1】:

    拖放一个 ScriptManager 控件,看看它是否有效。该错误足以解决您的问题。详情see this question

    【讨论】:

    • 好的,我想明白了,谢谢
    猜你喜欢
    • 1970-01-01
    • 2011-05-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-08
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多