永发信息网

asp编程错误!

答案:2  悬赏:0  手机版
解决时间 2021-04-11 19:11
  • 提问者网友:感性作祟
  • 2021-04-11 09:35
“/聊天室”应用程序中的服务器错误。 The control with ID 'UpdatePanel1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it. 说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.InvalidOperationException: The control with ID 'UpdatePanel1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.

源错误:

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。

堆栈跟踪:

[InvalidOperationException: The control with ID 'UpdatePanel1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it.] System.Web.UI.UpdatePanel.get_ScriptManager() +200 System.Web.UI.UpdatePanel.RegisterPanel() +88 System.Web.UI.UpdatePanel.OnInit(EventArgs e) +17 System.Web.UI.Control.InitRecursive(Control namingContainer) +345 System.Web.UI.Control.InitRecursive(Control namingContainer) +196 System.Web.UI.Control.InitRecursive(Control namingContainer) +196 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1793

版本信息: Microsoft .NET Framework 版本:2.0.50727.42; ASP.NET 版本:2.0.50727.42
最佳答案
  • 五星知识达人网友:拾荒鲤
  • 2021-04-11 10:48

一个页面只能有一个scriptManager,必须在updatPanel控件前,你上面的错误就是吧位置颠倒了,修改一下试试

全部回答
  • 1楼网友:刀戟声无边
  • 2021-04-11 11:10
UpdatePanel1这个控件在哪啊?
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯