Tabbing behavior in WebForms

ε祈祈猫儿з 提交于 2019-12-08 16:33:33

问题


In WinForms, I can design a form and have a TabValue to control which control is selected each time the user hits 'Tab'. My question, in a Webform, is there a mechanism for doing the same thing?

Edit: Does the same apply to an Ajax heavy application?


回答1:


You can set this with the TabIndex property on the ASP controls. If you want to do this on something that isn't an ASP control, you could also try something like the jQuery tabIndex plugin.




回答2:


Web controls have a TabIndex property that you can set.




回答3:


When using the TabIndex values, name them as 5,10,15,20 and so on rather than 1,2,3,4 so if you want to insert a control in between later or even move it, you would not need to renumber the TabIndex property on all the controls.



来源:https://stackoverflow.com/questions/234704/tabbing-behavior-in-webforms

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!