ID为"ControlID"的控件需要页面上的ScriptManager. ScriptManager必须出现在需要它的任何控件之前. [英] The control with ID 'ControlID' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

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

问题描述

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


即使我在aspx页面中包含带有runat ="server"的ScripManager标记,但仍然出现相同的错误.

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


Even though i include ScripManager tag with runat="server" in aspx page.. but still i am getting the same error.

推荐答案

这是Ajax的事情.您需要在aspx文件中使用这一行

It''s an Ajax thing. You need this line to your aspx file

<![CDATA[<%@ Register TagPrefix="ajaxToolkit" Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" %>]]>



并确保添加System.Web.Extensions作为对您网站的引用.



and ensure that System.Web.Extensions is added as a reference to your site.


根据您要对AJAX相关错误逐一询问的问题,您好像直接跳了起来.完全不了解i 的情况下就可以对AJAX网站进行编码.

我建议您从这里阅读并参考:
MS:AJAX视频 [ ^ ]
Ajax教程 [ ^ ]
AJAX概述 [ AJAX工具包示例 [什么是ASP.NET Ajax? [
Based on your questions that you are asking one by one on the AJAX related error, it looks like you have directly jumped into coding of AJAX website without having any knowledge at all.

I would suggest you to read and take references from here:
MS: AJAX Videos[^]
Ajax tutorials[^]
AJAX overview[^]
AJAX toolkit samples[^]
What is ASP.NET Ajax?[^]


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

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