HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

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

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE