<html>
<head>
http://../JQuery/jquery-1.7.2.js

$(document).ready(function () {
$(‘#txtPassword’).keypress(function(e)
{
var key = e.which;
if(key == 13)
{
//$(‘#btnSubmit’).click();
$(“#btnSubmit”)[0].click();
//alert(‘hi1’);
//return false;
}
});

});

</head>
<body>
<form id=”form1″ runat=”server”>
<fieldset>

 <asp:TextBox ID=”txtUser” runat=”server” class=”form-control” placeholder=”UserID”
MaxLength=”8″></asp:TextBox>
<asp:TextBox ID=”txtPassword” runat=”server” class=”form-control” placeholder=”Password”
TextMode=”Password”></asp:TextBox>
<asp:LinkButton ID=”btnSubmit” runat=”server” class=”btn btn-bricky pull-right”>Login <i class=”fa fa-arrow-circle-right”></i> </asp:LinkButton>

</fieldset>
</form>
</body>

</html>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: