Button click with keyboard

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all

can I use shortcuts like Alt + E etc. instead of clicking a button with the mouse? How can I do it in ASP.NET

Thank you
Joy
 
Hi, Joy,

Use the AccessKey property:
http://msdn.microsoft.com/library/e...IWebControlsWebControlClassAccessKeyTopic.asp

To see for which html elements it applies:
http://msdn.microsoft.com/library/d...thor/dhtml/reference/properties/accesskey.asp

If you need to assign it to an object for which it is not defined use the
Attributes property, i.e.

[C#]
someControl.Attributes["accesskey"] = "m";
[VB.NET]
someControl.Attributes("accesskey") = "m"

Greetings
Martin
Joy said:
Hi all,

can I use shortcuts like Alt + E etc. instead of clicking a button with
the mouse? How can I do it in ASP.NET?
 
Back
Top