Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET AccessKey Property

ASP.NET AccessKey Property


Web Control Standard Attributes Reference Manual Web control standard properties reference manual


Definition and Usage

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

The access key allows the user to switch the focus of input elements using the keyboard.

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

Syntax

webcontrol

id="

id

" AccessKey=

"accessKey"

runat="server"

/>

 

property Description
AccessKey The character used to access the control.

Example

The following example sets an access key for a check box:

Demo Example »


Web Control Standard Attributes Reference Manual Web control standard properties reference manual