We help IT Professionals succeed at work.

Tab order, Tab Key

Greetings

Tab order on the page only works correctly when I use the Enter key. But users prefer using the tab key. When using the tab key after first control loses focus, focus goes to the address bar, then back to the next  control on the page. Why does it go to the adress bar?

Some controls also do checks on the database side, then populating other fields on the screen. Is it possible without pressing the enter key? Can that be done with tab key?

Please assist

Regards
MandyProg
Comment
Watch Question

Top Expert 2009

Commented:
This document might help you:

http://www.beansoftware.com/ASP.NET-Tutorials/Access-Tab-Key.aspx

and this one says why your Enter key acts like tab key:

http://bytes.com/topic/net/answers/48819-make-enter-key-act-like-tab

Arun
After setting the tabindex of the buttons and disabled controls to -1, the app started functioning as desired. For the server code to be retrieved I had to change the controls's autopostback property to true, now that code is executing after pressing tab, like it did when I pressed Enter.

The link that I got had obsolete stuff and no ways on implementing the new ways.
Top Expert 2009

Commented:
I was answering the first part of your question and you might be able to do a postback by creating a browser plug-in, but this will just break the perception of a web page.

I'm objecting because I need to know why the links are obsolete.

Arun
Top Expert 2009

Commented:
I just recalled there might be some other way in which you can use key strokes to make things work for you.

Microsoft AJAX provides a feature called 'auto-complete'. In this, based on the user input to say, a text field, you can have a web service run in the background and get appropriate values.

I was thinking you could use this to do the db check depending on what the user types in. Here's a sample of the Auto-complete feature:

http://www.asp.net/ajax/videos/how-do-i-use-the-aspnet-ajax-autocomplete-control

Arun

Author

Commented:
Hi

I don't use web services and the AJAX controls. I will keep it for future use.

Thanks
Top Expert 2009

Commented:
You don't seem to have a good reason to call the links that I posted as 'obsolete'. Well anyways, please choose YOUR OWN post as the solution to this thread and mark it for PAQ.

Arun