.aspx页中的tabindex [英] tabindex in .aspx page
问题描述
在.aspx页面中,我有一个对应于textbox1的图像按钮.
在onclientclick的图像按钮中,我正在填充数据并绑定到textbox1.
我在图像按钮之后但在填充数据后将tabindex = 1赋予了图像按钮,将tabindex = 2赋予了textbox2,但在填充数据后,
标签索引从图像按钮移至URL而不是textbox2.
我在Google中尝试过,但找不到正确的解决方案.
请帮助我让tabindex指向textbox2而不是URL.
Hi,
In .aspx page, I have a image button corresponding to textbox1.
In image button onclientclick, i am populating data and binding to textbox1.
I have given tabindex=1 to image button and tabindex=2 to textbox2 after imagebutton but after populating the data,
Tab index is moving from image button to URL instead of textbox2.
I tried in google but couldn''t find correct solution.
please help me in having tabindex to textbox2 rather than to URL.
推荐答案
听起来像是您失去了焦点,因而失去了当前的Tab顺序.将焦点重置回imagebutton. TaxIndex不会自动从文本框中更改.定义控件的选项卡索引,并确保焦点在Javascript事件发生后才回到控件,以使选项卡起作用.
Sounds like you are loosing your focus and thus current tab order. Reset the focus back to imagebutton. TaxIndex would not automatically change from textbox. Define tab indexes for the controls and make sure the focus is back to the control after Javascript event such that tab works.
这篇关于.aspx页中的tabindex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!