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

我创建了一个新的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的新手,所以我可以在web.config中安装我的ScriptManager吗?

解决方法

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

看看这个Sample AJAX Application

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

相关文章

### 创建一个gRPC服务项目(grpc服务端)和一个 webapi项目(...
一、SiganlR 使用的协议类型 1.websocket即时通讯协议 2.Ser...
.Net 6 WebApi 项目 在Linux系统上 打包成Docker镜像,发布为...
一、 PD简介PowerDesigner 是一个集所有现代建模技术于一身的...
一、存储过程 存储过程就像数据库中运行的方法(函数) 优点:...
一、Ueditor的下载 1、百度编辑器下载地址:http://ueditor....