gpt4 book ai didi

asp.net - ScriptManager 必须出现在任何需要它的控件之前

转载 作者:行者123 更新时间:2023-12-03 10:31:18 31 4
gpt4 key购买 nike

我创建了一个新的 ASP.NET Web 应用程序,调试后出现服务器错误

The control with ID 'WaitingPopup1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.



我是 ASP.NET 的新手,所以我应该在哪里安装我的 ScriptManager,在 web.config 中?

最佳答案

ScriptManager是需要添加到您创建的页面的控件。

看看这个Sample AJAX Application .

<body>
<form runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
...
</form>
</body>

关于asp.net - ScriptManager 必须出现在任何需要它的控件之前,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13473808/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com