Easy Tutorial
❮ Prop Webcontrol Listbox Rows Prop Control Standard Id ❯

ASP.NET AccessKey Property



Definition and Usage

The AccessKey property is used to set or return the keyboard key used to access a control.

The access key allows users to switch the focus of an input element using the keyboard.

In most browsers, access is invoked by pressing Alt (on PC) or Ctrl (on Mac), along with the accesskey character on the keyboard.

Syntax

Property Description
AccessKey The character used to access the control.

Example

The following example sets an access key for a checkbox:


❮ Prop Webcontrol Listbox Rows Prop Control Standard Id ❯