【发布时间】:2010-02-25 20:34:22
【问题描述】:
当我单击 Web 部件库中的自定义 Web 部件时,我得到以下信息:The control with ID 'UpdatePanel1' requires a ScriptManager on the page. The ScriptManager must appear before any controls that need it. 如果我使用 Web 部件,即执行搜索,我收到一个弹出错误:Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The Status code returned from the server was: 500。
此 Web 部件从文本框中获取搜索字符串,将其传递给 BL/DAL 并从 DB 返回数据。我已经为部分回发集成了一个 UpdatePanel - 使用 this blog 作为指南,但它不起作用。
按照博客的建议,我已使用 MSSP Designer 将 scriptManager 添加到 default.master 页面,但奇怪的是,脚本管理器会导致错误(红色下划线)In Internet Explorer 6.0 the tag <asp:ScriptManager> is not permitted.
【问题讨论】: