473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Tabindex

kai
Hi, All
I try to setup Tebindex in ASP.NET page like in Windows form, using
Tabview, but cannot fnd it. In the properties windows in ASP.NET, change
Tabindex does not change
the tab order. How can setup the tab order in ASP.NET?

Thanks

Kai
Nov 18 '05 #1
2 15080
Hi kai,
Thank you for using Microsoft Newsgroup Service. Based on your description,
you have some problem with setting the tabindex for the web controls on the
ASP.NET web page. Is my understanding correct.

In asp.net web page, you can set all the controls' tabindex attribute in
the property window, nomatter it's a ASP.NET server control or a html
control. However, since in the web page, some element is unable to get
focus such as text(lable), so you may sometimes feel they are not set focus
as the tabIndex they've been set. Also, I've tested use a simple
aspx page to set tabindex for both server controls and html controls, you
may try out this page to see whether it works:

------------------aspx page--------------------
<HTML>
<HEAD>
<title>TabIndex</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<table width="600" align="center">
<tr>
<td>
<asp:TextBox id="TextBox1" tabIndex="1"
runat="server"></asp:TextBox></td>
<td>
<asp:Button id="Button1" tabIndex="5" runat="server"
Text="Button"></asp:Button></td>
</tr>
<tr>
<td>
<asp:ImageButton id="ImageButton1" tabIndex="2"
runat="server"></asp:ImageButton></td>
<td>
<asp:DropDownList id="DropDownList1" tabIndex="6" runat="server">
<asp:ListItem Value="aaa" Selected="True">aaa</asp:ListItem>
<asp:ListItem Value="bbb">bbb</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td>
<asp:ListBox id="ListBox1" tabIndex="3" runat="server">
<asp:ListItem Value="aaa" Selected="True">aaa</asp:ListItem>
<asp:ListItem Value="bbb">bbb</asp:ListItem>
<asp:ListItem Value="ccc">ccc</asp:ListItem>
</asp:ListBox></td>
<td>
<asp:CheckBox id="CheckBox1" tabIndex="7" runat="server"
Text="CheckItem"></asp:CheckBox></td>
</tr>
<tr>
<td><INPUT tabIndex="4" type="text"></td>
<td><INPUT tabIndex="8" type="button" value="Button"></td>
</tr>
</table>
</form>
</body>
</HTML>
------------------------------------------

If you have any questions or need any help, please feel free to post here .

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #2
kai
Hi, Steven
Thanks, it works.

Kai
"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:SI**************@cpmsftngxa07.phx.gbl...
Hi kai,
Thank you for using Microsoft Newsgroup Service. Based on your description, you have some problem with setting the tabindex for the web controls on the ASP.NET web page. Is my understanding correct.

In asp.net web page, you can set all the controls' tabindex attribute in
the property window, nomatter it's a ASP.NET server control or a html
control. However, since in the web page, some element is unable to get
focus such as text(lable), so you may sometimes feel they are not set focus as the tabIndex they've been set. Also, I've tested use a simple
aspx page to set tabindex for both server controls and html controls, you
may try out this page to see whether it works:

------------------aspx page--------------------
<HTML>
<HEAD>
<title>TabIndex</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<table width="600" align="center">
<tr>
<td>
<asp:TextBox id="TextBox1" tabIndex="1"
runat="server"></asp:TextBox></td>
<td>
<asp:Button id="Button1" tabIndex="5" runat="server"
Text="Button"></asp:Button></td>
</tr>
<tr>
<td>
<asp:ImageButton id="ImageButton1" tabIndex="2"
runat="server"></asp:ImageButton></td>
<td>
<asp:DropDownList id="DropDownList1" tabIndex="6" runat="server">
<asp:ListItem Value="aaa" Selected="True">aaa</asp:ListItem>
<asp:ListItem Value="bbb">bbb</asp:ListItem>
</asp:DropDownList></td>
</tr>
<tr>
<td>
<asp:ListBox id="ListBox1" tabIndex="3" runat="server">
<asp:ListItem Value="aaa" Selected="True">aaa</asp:ListItem>
<asp:ListItem Value="bbb">bbb</asp:ListItem>
<asp:ListItem Value="ccc">ccc</asp:ListItem>
</asp:ListBox></td>
<td>
<asp:CheckBox id="CheckBox1" tabIndex="7" runat="server"
Text="CheckItem"></asp:CheckBox></td>
</tr>
<tr>
<td><INPUT tabIndex="4" type="text"></td>
<td><INPUT tabIndex="8" type="button" value="Button"></td>
</tr>
</table>
</form>
</body>
</HTML>
------------------------------------------

If you have any questions or need any help, please feel free to post here ..
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: single_minded98 | last post by:
Eloo Everybody.. I need some help, all my asp page i already assign the tabIndex. Is there any sample when i click the input type (which tabindex assign to 1) and then the tabIndex focus to the...
3
by: Brad Isaacs | last post by:
Dear friends, I am using tabIndex and it works with my IE 5.5, IE6.0, and the NN6 browsers. However, it does not work for NN4. After reading online & seeing in my JavScript Bible that it is...
6
by: George Hester | last post by:
The reason why I want to do this is that I will set a form's elements to have a tabIndices. I start out with no tabbing. The page loads the cursor appears in a first Input box and until the user...
7
by: jerrygarciuh | last post by:
Hello, I have been playing with various Googled solutions for capturing the <Enter> key to suppress form submission. My first question is whether anyone has a script that works in all common...
4
by: Wayne Wengert | last post by:
I cannot get the tab settings on an aspx page to work as desired. First of all, I don't see a way to indicate whether a control is a tab stop. There is a tabindex property for labels (why?). When I...
0
by: Robert Boudra | last post by:
In VB6, if you set the TabIndex of a control, it would automatically increment the TabIndex of the remaining controls on the form so that there would be no duplication. In VB.net, it seems...
5
by: michael sorens | last post by:
I have a form with a variety of controls (TextBox, CheckBox, and Button). I have assigned TabIndex values starting from 1 at the top, working my way down the form to 15 at the bottom. Each of these...
3
by: Mike Eaton | last post by:
Hi there, I've got what I hope is a simple problem to solve... Here's the back story: I have a windows form. On the form is a panel containing three textboxes. Also on the form is a text box...
3
by: Alex Maghen | last post by:
Hi I have three questions about the Tab Order that's rendered by default on an ASPX page: 1. On a page that's all ordered HTML (instead of absolute positioning), shouldn't the default be that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.