Html.ActionLink 在 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] })%>
这适用于除 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
感谢您的回复,但我发现了问题。导致问题的不是操作链接本身。我为 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.