Html.ActionLink 在 IE6 中不起作用

发布于 2024-09-09 15:44:43 字数 361 浏览 1 评论 0原文

<%= Html.ActionLink("Account Page", "Index", new {
    controller = "Account", culture = (string)Session[culture],
    client = (string)Session[Client], brand = (string)Session[Brand],
    storeid = (string)Session[Store] })%>

这适用于除 IE6 之外的几乎所有浏览器(IE7/8、Mozilla、safari、chrome)。这里的问题是链接显示为文本。

如何解决这个问题? IE6 是主要要求之一。

<%= Html.ActionLink("Account Page", "Index", new {
    controller = "Account", culture = (string)Session[culture],
    client = (string)Session[Client], brand = (string)Session[Brand],
    storeid = (string)Session[Store] })%>

This works in almost all browser (IE7/8, Mozilla, safari, chrome) except IE6. The problem here is the links are displayed as text.

How to get around with this? IE6 is one of the major requirement.

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

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

发布评论

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

评论(1

随梦而飞# 2024-09-16 15:44:43

感谢您的回复,但我发现了问题。导致问题的不是操作链接本身。我为 IE6 添加了一个 javascript (jquery.pngFix.js) 作为图像的修复程序,它导致了问题。一旦我删除了这个脚本,一切就正常了。再次感谢您的回复。

Thanks for replying, but I found the problem. It wasn't the actionlink itself which was causing the problem. I had added a javascript (jquery.pngFix.js) for IE6 as a fix for the image and it was causing the problem. Once I removed this script everything worked. Again thanks for replying.

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