有线更新面板回发问题

发布于 2024-10-13 07:27:45 字数 529 浏览 9 评论 0原文

我开发了一个网站并在所有页面上使用了更新面板控件。该网站运行良好,部分渲染也运行良好。但今天更新面板停止了任何回发。我不知道这是否与性能分析有关,因为我昨天正在试验它。

我在所有页面上使用 Asp.NET AJAX 3.5 框架、ToolkitScriptManager。

我尝试做的事情。

1.) 重新加载 AJAX 控制工具包的二进制文件

2.) 尝试重新加载更新面板

3.) 更新面板中的页面方法似乎有效。并且自动完成扩展器工作正常。

4.) 我确实备份了几周前的代码。它正在按预期工作。因此,我尝试从备份中复制 web.config 并检查最新代码。仍然没有工作。

目前,在任何页面上,每当我从下拉列表中选择一个项目时,它都不会执行典型的异步回发,并且不会加载其他依赖的下拉列表。

此外,更新面板在我的任何页面上都不起作用。似乎存在与 web.config 相关的问题,但不确定(我还添加了一个新的 Web 配置文件,但不起作用)。

任何与此相关的帮助将不胜感激。

谢谢。

I have developed a web site and used update panel controls on all pages. The site was working fine and partial rendering was also working fine. But today update panel just stopped doing any post back. I don't know if this has anything to do with Performance Analysis, since I was experimenting with it yesterday.

I am using Asp.NET AJAX 3.5 framework, ToolkitScriptManager on all pages.

Things I tried doing.

1.) Reloaded Binary for AJAX Control Toolkit

2.) Tried to reload update panel

3.) Page methods within Update Panel seems to work. And Autocomplete Extender is working appropriately.

4.) I did backed up my code from few weeks back. It is working as expected. So I tried to copy web.config from my backup and checked it on latest code. Still not working.

Currently on any page whenever I select an item from a dropdownlist it is not doing a typical asynchronous postback and doesn't load other dependent dropdownlists.

Also update panel is not working on any of my pages. There seems to be an issue related to web.config but not sure though(I also added a new web config file but not working).

Any help in related to this would be appreciated.

Thank You.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

猥琐帝 2024-10-20 07:27:45

我已经解决了这个问题。原因:我在我的母版页中编写了“Response.write()”。我能够在 Chrome 控制台窗口中进行跟踪,这是错误: Uncaught Sys.WebForms.PageRequestManagerParserErrorException: Sys.WebForms.PageRequestManagerParserErrorException: 无法解析从服务器收到的消息。出现此错误的常见原因是通过调用 Response.Write()、响应筛选器、HttpModule 或启用服务器跟踪来修改响应。我删除了response.write,它按预期工作。

I have solved this problem. Cause: I have written "Response.write()" in my master page. I was able to track in Chrome Console window and this was error: Uncaught Sys.WebForms.PageRequestManagerParserErrorException: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled. I removed response.write and it works as it was supposed to be.

赠我空喜 2024-10-20 07:27:45

与 @Mitul 相同,但它是 Response.Redirect()。
它可以在本地主机上运行,​​但不能在生产环境中运行。

我添加并到处工作!

<asp:UpdatePanel runat="server">
    <Triggers>
        <asp:PostBackTrigger ControlID="lnkAddProduct" />
    </Triggers>

“lnkAddProduct”是面板中的 LinkBut​​ton。

Same thing as @Mitul but it was a Response.Redirect().
It works on localhost but not in production.

I added and works everywhere !

<asp:UpdatePanel runat="server">
    <Triggers>
        <asp:PostBackTrigger ControlID="lnkAddProduct" />
    </Triggers>

The "lnkAddProduct" is a LinkButton in a Panel.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文