开发者

TABINDEX not working on HyperLinks

开发者_C百科
<asp:HyperLink ID="SignIn" runat="server" CssClass="SignIn" TabIndex="3">Sign In</asp:HyperLink>

the problem with the above is that TABINDEX does not work. I have also a username and password TEXTBOXES and the tabindex works with them, but the hyperlink does not work.

i need it also on other links, so replacing a sign in with a button is not helping me much, unless i replace all links with a button.

how to figure out why the hyperlink's tabindex is not working?

thnx


Make sure you have set the NavigateUrl of your hyperlink. If it is not set the hyperlink cannot get focus and tabindex will not work.


just found out what it was :( after much trouble...

in my css i used:

outline: none;

so probably it WAS getting the focus, but it was just not visible.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜