Shortcut key or Access Key

Posted by Vanchi050585 under ASP.NET on 7/19/2010 | Views : 3527 | Status : [Member] | Replies : 1
Hi friends,

I am using asp.net button for the Save option. i want to know, Alt+S for the button having Text Save. And also how to set underline like S ave in asp.net. pls tell me
<asp:Button ID="btnsave" runat="server" Text="Save" Style="left: -45px; position: relative;
top: 0px" OnClick="btnsave_Click1" Width="99px" Font-Names="Verdana" Font-Size="0.8em" ValidationGroup="A" Height="37px" Font-Underline="False" ></asp:Button>

Thanks in advance,
Vanchi

Thanks
tvn



Responses

Posted by: Neeks on: 7/19/2010 [Member] Bronze

Up
0
Down
There is a property called accesskey in the property list of the button
So please set it as S,

<asp:Button ID="btnsave" runat="server" Text="Save" Style="left: -45px; position: relative; 

top: 0px" OnClick="btnsave_Click1" Width="99px" Font-Names="Verdana" Font-Size="0.8em" ValidationGroup="A" Height="37px" Font-Underline="False" AccessKey="S" ></asp:Button>


Vanchi050585, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response