System.Web.UI.WebControls.WebControl.AccessKey Property

Gets or sets the access key that allows you to quickly navigate to the Web server control.

Syntax

[System.ComponentModel.DefaultValue("")]
public virtual string AccessKey { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the WebControl.AccessKey property to specify the keyboard shortcut for the Web server control. This allows you to navigate quickly to the control by pressing the ALT key and the key for the specified character on the keyboard. For example, setting the access key of a control to the string "D" indicates that the user can navigate to the control by pressing ALT+D.

Only a single character string is allowed for the WebControl.AccessKey property. If you attempt to set this property to a value that is neither null, string.Empty, nor a single character string, an exception is thrown.

Note:

This property is supported only in Internet Explorer 4.0 and later.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0