在 ASP.NET 应用程序中,会话中加载同一页面的多个实例是同步加载,而不是异步加载。
我有一个使用 .net 3.5 框架 Telerik 的 asp.net 应用程序,并使用 IE8 对其进行测试。
我最近收到一项要求,要求允许应用程序中的任何页面在同一会话的多个浏览器上加载。
我们使用会话来跨页面加载保存一些数据。
看来,当同一会话中的两个或多个浏览器加载同一页面时,这些页面会同步加载,而不是并行加载。我在页面的 page_load 事件中添加了日志记录。日志记录表明一次仅加载一页。一旦一个浏览器的 page_load 完成,就会有一到两秒的延迟,然后下一个浏览器的 page_load 会触发,直到会话中所有排队的页面完成。
我最初的想法是这是一个阻塞问题。我检查了asp.net页面内的代码,以及该页面引用的静态实例的代码,这些代码可能会导致跨多个页面的阻塞,但没有发现任何问题。
关于可能导致上述同步 page_load 触发行为的任何想法?是否可能是 IE8 问题,或者涉及会话的某种类型的阻塞?
谢谢。
I have an asp.net application using the .net 3.5 framework, Telerik, and am testing it using IE8.
I have recently received a requirement to allow any of the pages within the application to be loaded on multiple browsers for the same session.
We are using session to persist some of the data across page loads.
It appears that when the same page is loaded by two or more browsers within the same session, the pages load synchronsly, rather than in parellel. I added logging within the page_load event of the page. The logging inidicates that only one page at a time is loads. Once the page_load for one browser completes there is one to two second delay, then the next browser's page_load fires until all queued pages within the session complete.
My initial thought was that this was a blocking issue. I have reviewed the code within the asp.net page, and the code referenced by the page for static instances which might cause blocking across multiple pages, and have not found any.
Any ideas on what might be causing the synchonus page_load firing behavior as described above? Could it potentially be an IE8 issue, or some type of blocking involving session?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论