Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
1.22/5 (2 votes)
I have set focus to textbox in design, and there are anchor tags in my page,

when page loads first, focus on the textbox appears, but keypad doesn't appear,
when we click on textbox which was focused, anchor tag gets clicked and navigation starts.

Here is the code snippet


<asp:Label ID="lblUserName" runat="server" CssClass="col-sm-6 control-label lblFont required" Text="Username" />

<asp:TextBox runat="server" ID="txtUserName" CssClass="form-control ctrlFont" placeholder="Username" TabIndex="1" MaxLength="100"
onBlur="funTrimString(this)" autofocus="autofocus">







<asp:Label ID="lblPassword" runat="server" CssClass="control-label lblFont " Text="Password" />


<asp:TextBox runat="server" ID="txtPassword" CssClass="form-control pwd ctrlFont clearable" Placeholder="Password" TextMode="Password" TabIndex="2" MaxLength="50"
onBlur="funTrimString(this)">
Forgot password / username

Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900