473,409 Members | 1,983 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,409 software developers and data experts.

Tabbing through Controls - 2nd post

Tabbing from the first control on a form always sends me to IE's Address Bar
instead of the next control, no matter how I set the TabIndex property for
the controls. Why is this happening?

For example, I have a simple login screen with 2 textboxes (Login ID and
Password) and 2
buttons (Login and Cancel). I've set the TabIndex Property of each control,
starting at 0.

When I enter a login id and then press Tab, the focus goes to IE's Address
Bar instead of the next control! How do I allow the user to reliably cycle
through the controls on a web page?

Nov 18 '05 #1
3 2205
Don't use zero. Start at 1 and see if that works?

<P>
<asp:TextBox id="TextBox1" tabIndex="1"
runat="server"></asp:TextBox></P>
<P>
<asp:TextBox id="TextBox2" tabIndex="2"
runat="server"></asp:TextBox></P>
<P>
<asp:Button id="Button1" tabIndex="3" runat="server"
Text="Button"></asp:Button></P>

"Richard" <Ri*****@discussions.microsoft.com> wrote in message
news:C0**********************************@microsof t.com...
Tabbing from the first control on a form always sends me to IE's Address
Bar
instead of the next control, no matter how I set the TabIndex property for
the controls. Why is this happening?

For example, I have a simple login screen with 2 textboxes (Login ID and
Password) and 2
buttons (Login and Cancel). I've set the TabIndex Property of each
control,
starting at 0.

When I enter a login id and then press Tab, the focus goes to IE's Address
Bar instead of the next control! How do I allow the user to reliably cycle
through the controls on a web page?


Nov 18 '05 #2
It looks like 0 is the value you don't want to use....

"The tab index of the Web server control. The default is 0, which indicates
that this property is not set."

http://msdn.microsoft.com/library/de...indextopic.asp

"Richard" <Ri*****@discussions.microsoft.com> wrote in message
news:C0**********************************@microsof t.com...
Tabbing from the first control on a form always sends me to IE's Address
Bar
instead of the next control, no matter how I set the TabIndex property for
the controls. Why is this happening?

For example, I have a simple login screen with 2 textboxes (Login ID and
Password) and 2
buttons (Login and Cancel). I've set the TabIndex Property of each
control,
starting at 0.

When I enter a login id and then press Tab, the focus goes to IE's Address
Bar instead of the next control! How do I allow the user to reliably cycle
through the controls on a web page?


Nov 18 '05 #3
Thank you Ken! This works.

"Ken Cox [Microsoft MVP]" wrote:
It looks like 0 is the value you don't want to use....

"The tab index of the Web server control. The default is 0, which indicates
that this property is not set."

http://msdn.microsoft.com/library/de...indextopic.asp

"Richard" <Ri*****@discussions.microsoft.com> wrote in message
news:C0**********************************@microsof t.com...
Tabbing from the first control on a form always sends me to IE's Address
Bar
instead of the next control, no matter how I set the TabIndex property for
the controls. Why is this happening?

For example, I have a simple login screen with 2 textboxes (Login ID and
Password) and 2
buttons (Login and Cancel). I've set the TabIndex Property of each
control,
starting at 0.

When I enter a login id and then press Tab, the focus goes to IE's Address
Bar instead of the next control! How do I allow the user to reliably cycle
through the controls on a web page?


Nov 18 '05 #4

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

Similar topics

145
by: David MacQuigg | last post by:
Playing with Prothon today, I am fascinated by the idea of eliminating classes in Python. I'm trying to figure out what fundamental benefit there is to having classes. Is all this complexity...
0
by: vikki | last post by:
I have my main window (made of a CFrameWnd and a CWnd subclasses). When I created the CWnd subclass (the main client area), I used WS_EX_CONTROLPARENT in the CreateEx method. I have several...
2
by: Samuel Hon | last post by:
Hi I'm trying to prevent users from moving between different records in forms in Access 2000. I've turned off the record selectors and disabled the mouse wheel. I've now found that you can...
0
by: Nick | last post by:
Hi, I have a requirement to build a mouse free windows application and have to hence rely heavily on the tabbing indices. However, I'm facing some issues when the tab goes to a datagrid. It...
2
by: rmiller | last post by:
I'm in dire straits. I'm converting part of a product into VB.NET, but still need to access forms written in VB 6.0. I've got just about everyting working, but the tabbing on the form. The form...
6
by: Doug Bell | last post by:
Hi I have a DataGrid with some hidden columns and also some read Only and some ComboBox Columns. Sandard Tabbing through the Datagrid sees the focus go to the hidden columns requiring further...
1
by: Meenakshi Sundaram | last post by:
Hi I have a page which contains 3 Iframes loaded dynamically in a iterate loop. I have a requirement to navigate though all the buttons and hyperlinks in the page through the TAB key. But I do...
7
by: gtyler | last post by:
I would like to Programmatically move from one control to another following the TabIndex. If the user were to fill the maximum length of any one of a number of TextBoxs they would automatically be...
3
by: Ty | last post by:
I am creating a ASP.net project and I wanted to make it so that when the user tabs on on of my pages that they do not have to tab through some controls. Is there a way to skip controls while...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.