Question

I'm developing what's intended to be a very efficient UI in ASP.NET.

I want my users to be able to hit ALT-A to postback the form via a particular button. In other words, when they hit "ALT A" the form will post back and the event handler/function associated with a particular ASP.NET button control will run.

How can I do this? I have ASP.NET 2.0/3.5. I also have the Telerik control set at my disposal.

-KF

Was it helpful?

Solution

Use the "accesskey" attribute in HTML.

<input type="submit" accesskey="a" value="Submit">
<asp:Button AccessKey="a" runat="server" ....
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top