ASP.NET AccessKey Property


Web Control Standard Properties Reference Complete Web Control Standard Properties Reference

Definition and Usage

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

The access key allows a user to shift the focus of an input element, using the keyboard.

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

Syntax

<asp:webcontrol id="id" AccessKey="accessKey" runat="server" />
 
Attribute Description
AccessKey The character used to access the control

Example

The following example sets the access key of a checkbox:

<form runat="server">
<asp:CheckBox id="check1" AccessKey="y" runat="server" />
</form>

Show example »

Web Control Standard Properties Reference Complete Web Control Standard Properties Reference

SHARE THIS PAGE

Color Picker

colorpicker