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

Make Enter Key act like Tab

My .aspx page - written with vb.net, has several text
boxes and a command button at the bottom. Is there any
way to make it so when users press Enter on a text box it
acts as if they pressed the Tab - and sets focus to the
next text box? Now it runs the command button's click
event.
Jul 19 '05 #1
2 8336
You'll have to write client-side JavaScript but in general tabbing is
FUBAR in ASP.NET. Visual Studio.NET is also FUBAR in this
regard.

Microsoft talks a big game about accessibility and actually I have a lot
of respect for what the company has done in this regard but the failure
to provide complete control of tab indices and tab order is FUBAR.

Why should a blind person be forced to tab into the address bar of
the browser when trying to use a form? This is f*cking insane.

Why does Visual Studio.NET 2002 not include a Tab Order on the View
menu the way some documentation claims?

Apparently, the DNF is so FU in this context that there is no property
that can be used to disable a tab index for labels and other controls
not wanted or needed in the tab index collection that by default impose
themselves into the tab index and thus affect the tab order.

Who needs to be required to tab through a f'ing label unless it is an imperative
usability requirement?

I've been struggling with this for weeks hoping to learn its just me, posting
requests for information and getting nowhere. Even the MVPs have
refused to provide any response which I suspect is because this issue is
so totally FUBAR that nobody wants to acknowledge it.

This makes a mockery of user interface design for accessible applications
and does nothing useful for ASP.NET applications in general.

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

LaGarde StoreFront 5 Affiliate: e-Commerce Software Development
SEE: http://www.storefront.net/default.as...RER=-201499070
"Jeff" <jr*******@cse-online.com> wrote in message news:02****************************@phx.gbl...
My .aspx page - written with vb.net, has several text
boxes and a command button at the bottom. Is there any
way to make it so when users press Enter on a text box it
acts as if they pressed the Tab - and sets focus to the
next text box? Now it runs the command button's click
event.

Jul 19 '05 #2
it's true controlling the tab order is tedious but you have full control
of the order in asp.net. set the tabindex on each control such that the
tab order follows what you expect. also, i can't tab into a text label
so i dont know what this guy is referring to.

now to your question, to cause the enter key to act as a tab key, you
need javascript. basically you need to add some complex set code in an
event that runs just before onsubmit. since asp.net writes javascript
that controls that event (if using server controls) you need another
event (onclick might be a suitable one.)
clintonG wrote:
You'll have to write client-side JavaScript but in general tabbing is
FUBAR in ASP.NET. Visual Studio.NET is also FUBAR in this
regard.

Microsoft talks a big game about accessibility and actually I have a lot
of respect for what the company has done in this regard but the failure
to provide complete control of tab indices and tab order is FUBAR.

Why should a blind person be forced to tab into the address bar of
the browser when trying to use a form? This is f*cking insane.

Why does Visual Studio.NET 2002 not include a Tab Order on the View
menu the way some documentation claims?

Apparently, the DNF is so FU in this context that there is no property
that can be used to disable a tab index for labels and other controls
not wanted or needed in the tab index collection that by default impose
themselves into the tab index and thus affect the tab order.

Who needs to be required to tab through a f'ing label unless it is an imperative
usability requirement?

I've been struggling with this for weeks hoping to learn its just me, posting
requests for information and getting nowhere. Even the MVPs have
refused to provide any response which I suspect is because this issue is
so totally FUBAR that nobody wants to acknowledge it.

This makes a mockery of user interface design for accessible applications
and does nothing useful for ASP.NET applications in general.


Jul 19 '05 #3

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

Similar topics

5
by: Alan Zhong | last post by:
i am trying to similate an "ENTER" as a key to switch focus in a sequence of text inputs. i don't want to use "event.keyCode" since i want to do additional testing before i decide which text input...
4
by: ad | last post by:
I want the text in a TextBox selected when the TextBox get focus. How can I do that?
15
by: Adam J. Schaff | last post by:
I have noticed that if a user closes a form via pressing return (either while the OK button has focus or if AcceptButton is set to OK for the form) then the "ENTER" keypress event fires ON THE...
2
by: pmclinn | last post by:
I have a couple of Payroll coordinators I'm trying to acclimate to the (asp.net) web but they are having a hard time getting use to using tab instead of the Enter Key. I have read in a couple...
1
by: Alexboy | last post by:
Hello, How do I make ENTER key act as a submit request? As it is now, the user has to actually click "submit" for the form to be submitted (in IE at least). Is there any way to make the...
6
by: Clark Sann | last post by:
Can someone help me understand what object should be used as the lock object? I've seen some programs that use Monitor.Enter(Me). Then, in those same programs, they sometimes use another object. ...
10
by: john | last post by:
In a form I'm trying to make a search field to be able to quickly find a record on ID-number. User enters a number and presses enter to move to that record. How do I trap for the enter-keystroke...
18
by: Zytan | last post by:
I want the same function to be run whether you press Enter or double click the listbox. It seems really verbose to write both handlers to both events everytime, even if they both call the same...
0
by: Steve K | last post by:
to this newline when an enter key is detected. Update: I tried adding this code: <code> public PMDDataGridViewTextBoxEditingControl() :base() { this.Multiline = true; } </code>
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: 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...
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:
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...

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.