在IE7中,asp:Link的访问的超链接颜色未更改 [英] Visited hyperlink color is not changing in IE7 for asp:Link

查看:73
本文介绍了在IE7中,asp:Link的访问的超链接颜色未更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

默认情况下,ASP.NET链接按钮将JavaScript表单提交代码注入href
中以进行回发.因此,我认为大多数页面都存在这个问题.

By default ASP.NET link button injects JavaScript form submit code in href
for doing post back. So I think we are having this issue in most of the pages.

如果超链接的href属性中包含JavaScript代码,而javascript包含form.submit(),则IE7不会跟踪这些链接的(历史记录).例如,如果我们在html页面中有以下链接

If the hyperlink has JavaScript code in its href property and javascript contains form.submit(), then IE7 doesnt keep track (history) of those links. For example, if we have following link in a html page

< a id =" LinkBut​​ton1"
href =" javascript:__ doPostBack('LinkBut​​ton1','')''> LinkBut​​ton</a>

<a id="LinkButton1"
href="javascript:__doPostBack('LinkButton1','')">LinkButton</a>

上面是链接按钮的html代码.

The above one is html code for link button.

尽管多次单击了链接,但链接按钮的颜色没有
更改为已访问链接的颜色.在IE6的情况下,第一次单击时链接颜色将更改为
访问的链接颜色.如果href具有任何http网址,那么
然后在IE7中也可以正常运行.这是IE 7中的预期行为吗?
是否可以解决此问题?

Though the link is clicked many times, color of the link button is not
changing to visited link color. In case of IE6, link color is changing to
visited link color on its first click. If the href is having any http url,
then in IE7 also its working perfectly. Is this a expected behaviour in IE 7?
If so, is there any option to fix this issue?

如果您需要更多详细信息,请告诉我.

Please let me know if you need more details on this.

此致,
Ramkumar.R

Regards,
Ramkumar.R

推荐答案

感谢您的发帖!我建议将您的问题发布到MS论坛之一中,

首页常规ASP .NET » Web表单

位于此处:http://forums.asp.net/18.aspx


这篇关于在IE7中,asp:Link的访问的超链接颜色未更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆