Mega Code Archive

 
Categories / ASP.Net Tutorial / ASP Net Controls
 

Label hot key

<%@ Page Language="C#" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">     <title>Label HotKeys</title> </head> <body>     <form id="form1" runat="server">     <div id="container">     <h1>Using AccessKey for Controls</h1>     <asp:Label ID="labName" runat="server"           AccessKey="N" AssociatedControlID="txtName" Text="<u>N</u>ame"></asp:Label>     <asp:TextBox ID="txtName" runat="server"></asp:TextBox><br />         <asp:Label ID="labMonth" runat="server"           AccessKey="M" AssociatedControlID="drpMonth" Text="<u>M</u>onth"></asp:Label>     <asp:DropDownList ID="drpMonth" runat="server">         <asp:ListItem>January</asp:ListItem>         <asp:ListItem>February</asp:ListItem>          <asp:ListItem>March</asp:ListItem>     </asp:DropDownList>     </div>     </form> </body> </html>