WebForm_SaveScrollPositionSubmit 未定义 - ASP.NET
我正在升级 ASP.NET 1.1 应用程序并且一切正常,但我看到标题中引用的 Javascript 错误。 根据研究,ASP.NET 似乎没有吐出用于维护回发之间滚动位置的 JavaScript。
我做了一些谷歌搜索并检查了提到的各种问题,但似乎找不到可能发生的情况。
环境详细信息:
- Win Server 2003 上的 IIS 6
- 虚拟目录正在运行 ASP.NET 2.0.50727
- 我已经在 web.config 部分设置了 MaintenanceScrollPositionOnPostBack="True"
有什么想法吗?
I'm upgrading an ASP.NET 1.1 app and have things working but am seeing the Javascript error referenced in the title. From research it appears that ASP.NET is not spitting out the javascript that is used to maintain scroll position between postbacks.
I did some googling and have checked the various issues mentioned but can't seem to find what might be going on.
Environment details:
- IIS 6 on Win Server 2003
- The virtual directory is running ASP.NET 2.0.50727
- I have set maintainScrollPositionOnPostBack="True" in the section of web.config
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否有任何 httphandlers 或 httpmodules 可以进行任何类型的请求过滤或重写? 或者 global.asax 中的任何特殊内容会阻止 javascript 崩溃? 我猜想有些东西阻止了内置的 axd 请求来获取处理 WebForm_SaveScrollPositionSubmit 的 javascript。
为了确定这一点,请启动 Fiddler 并观察 HTTP 请求并确保它们都正确发生。
另请确保页面上至少有 1 个且仅有 1 个表单。
Do you have any httphandlers or httpmodules that do any kind of request filtering or re-writing ? or anything special in global.asax that would prevent the javascript from coming down ? I would guess that something is blocking the built in axd request to get the javascript that deals with WebForm_SaveScrollPositionSubmit.
To find out for sure fire up Fiddler and watch the HTTP requests and make sure they are all happening correctly.
Also make sure there is at least 1 and only 1 form on the page.
我发现问题是时间问题。 如果服务器对构建的 DLL 有较旧的日期/时间,我就会遇到这个问题。
I found the problem to be timing issue. If the server has an older date/time to the built DLL, I was hitting this issue.