ScriptManager 必须出现在任何需要它的控件之前 [英] The ScriptManager must appear before any controls that need it

查看:25
本文介绍了ScriptManager 必须出现在任何需要它的控件之前的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I have created a new ASP.NET Web Application, and after debugging i got Server Error

ID 为WaitingPopup1"的控件需要页面上的 ScriptManager.ScriptManager 必须出现在任何需要它的控件之前.

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?

I'm new with ASP.NET so where schould i install my ScriptManager, in the web.config?

推荐答案

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

The ScriptManager is a control that needs to be added to the page you have created.

看看这个 示例 AJAX 应用程序.

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

这篇关于ScriptManager 必须出现在任何需要它的控件之前的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆