MS Word 文档中 ASP.NET 应用程序的链接

发布于 2024-08-07 16:56:26 字数 228 浏览 1 评论 0原文

在 MS Word 2003 / 2007 文档中单击指向 ASP.NET 应用程序的链接时,我观察到奇怪的行为。

我安装了IE8。当我单击文档中的链接时,发送的请求具有用户代理 IE7(!?)。创建一个新的会话对象。紧接着,第二个请求突然出现,这次是用户代理 IE8。

此外,当我单击请求页面上的任何内容时,都会再次创建一个新的会话对象,因此我不能依赖会话中保留的任何内容。

为什么会这样呢?

I am observing a weird behavior when clicking links to my ASP.NET application in MS Word 2003 / 2007 document.

I have IE8 installed. When I click a link in the document the request that is sent has the user-agent IE7(!?). A new session object is created. Right after that out of nowhere a second request appears this time having user-agent IE8.

More over, when I click anything on the requested page, a new session object is once again created, so I cannot rely on anything that has been persisted in the session.

Why is it like that?

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

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

发布评论

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

评论(1

顾铮苏瑾 2024-08-14 16:56:26

因为 Word 使用内置的 IE7 库来检查 URL 以及是否可以连接打开主浏览器。当响应类型不适合处理时,它可能被设计为在 Word 内部执行某些操作 - 打开外部“默认浏览器”窗口。

Because Word uses built in IE7 library to check URL and if it can connect opens main browser. Probably it is designed to do something internally in Word, when response type is not appropriate to process - open external "default browser" window.

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