Html 有没有办法在 ASP.net 中设置 Tab 顺序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/359583/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 22:52:10  来源:igfitidea点击:

Is there a way to set Tab Order in ASP.net?

.netasp.nethtmlasp.net-mvc

提问by AnthonyWJones

I am trying to set up my tab order on the html side of my project. How do I set the tab order. Usually in visual basic, the option is in the menu bar under view/tab Order. How do I do this in asp?

我正在尝试在我的项目的 html 端设置我的 Tab 键顺序。如何设置 Tab 键顺序。通常在visual basic中,选项在view/tab下的菜单栏顺序。我如何在asp中做到这一点?

回答by AnthonyWJones

Add TabIndex="x" to each control that can receive focus where x is an integer indicating the desired order of the controls.

将 TabIndex="x" 添加到每个可以接收焦点的控件,其中 x 是一个整数,指示控件的所需顺序。

回答by George Stocker

As answered here:

正如这里的回答:

e.g: You can set this with the TabIndex property on the ASP controls.

例如:您可以使用 ASP 控件上的 TabIndex 属性进行设置。

回答by Galwegian

Use the TabIndexproperty

使用TabIndex属性