473,325 Members | 2,872 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,325 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 8334
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: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.