Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 3.5 > ASP.NET 3.5 Basics
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 30th, 2008, 11:00 AM
Authorized User
 
Join Date: Jun 2008
Posts: 75
Thanks: 15
Thanked 0 Times in 0 Posts
Default Best Practices for setting Tab Order

Hello All,

Does anyone know of the best practices for setting the tab order of controls on your web forms? Also is there a way to disable the tabbing to a control?

Thanks In Advance

 
Old December 30th, 2008, 11:14 AM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

The best practice will depend on the locale that you are targeting. Being from the US I expect tabbing to flow from left to right, top to bottom in other parts of the world it might mean flowing from right to left and so on.

As far as disabling tabbing into a control, as far as I can remember, means you need to physically disable the control itself. Setting an HTML control to READONLY may also disable tabbing into the control but I don't remember off hand.

hth
-Doug
__________________
===============================================
Doug Parsons
Wrox online library: Wrox Books 24 x 7
Did someone here help you? Click on their post!
"Easy is the path to wisdom for those not blinded by themselves."
===============================================
 
Old January 2nd, 2009, 06:41 PM
Friend of Wrox
 
Join Date: Dec 2008
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts
Default

Set the TabIndex to -1, that prevents the control get tabbed into.

Quote:
Originally Posted by dparsons View Post
As far as disabling tabbing into a control, as far as I can remember, means you need to physically disable the control itself. Setting an HTML control to READONLY may also disable tabbing into the control but I don't remember off hand.

hth
-Doug





Similar Threads
Thread Thread Starter Forum Replies Last Post
Tab Order Screwy tonyrosen Excel VBA 1 March 1st, 2006 07:11 PM
how to many textbox jump by tab in order? richie86 ASP.NET 1.0 and 1.1 Basics 3 December 11th, 2005 04:29 PM
Best tab order implementation policy? nerssi Javascript 1 June 26th, 2005 05:05 AM
Problem Setting Tab Control selectedIndex Ron Howerton VB.NET 2002/2003 Basics 0 July 13th, 2004 03:31 PM
Using the TAB ORDER with ENTER KEY ? thomaz C# 0 September 10th, 2003 08:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.