微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

asp.net-ajax – 该页面正在执行异步回发,但ScriptManager.SupportsPartialRendering属性设置为false

如何修复以下异常?

The page is performing an async postback but the ScriptManager.SupportsPartialRendering property is set to false. Ensure that the property is set to true during an async postback.

此异常从Mozilla / 5.0(兼容; Googlebot / 2.1; http://www.google.com/bot.html)引发.

解决方法

我发现 this blog post here有类似的问题,并且在缓存用户代理时提到了仅尊重64个字符的认设置:

<browserCaps userAgentCacheKeyLength="64" />

此元素放在< system.web>内.但可能不存在,因为根据this MSDN library entry,64是认值.

ASP.NET究竟是如何确定某些浏览器的功能的,我还没有调查过,但是在备注部分可以找到一些提示here.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐