日期:2014-05-17 浏览次数:20469 次
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录</title>
<link href="Content/login.css" rel="stylesheet" type="text/css" />
<link type="text/css" href="jqueryui/css/smoothness/jquery-ui-1.8.20.custom.css" rel="stylesheet" />
<script type="text/javascript" src="Script/jquery-1.7.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
var $username = $("#txt_username");
var $userpwd = $("#txt_userpwd");
var $logincode = $("#logincode");
var $info = $("#lbl_info");
var $remeberpwd = $(":checkbox[name='remeberpwd']").attr("checked") == true ? "1" : "0";
$("#btn_login").click(function () {
if (checkinput() == true) {
$.ajax({
type: "post",
url: "ajax/MyLoginHandler.ashx",
data: "{'username':'" + $username.val() + "','userpwd':'" + $userpwd.val() + "','remeberpwd':'" + $remeberpwd + "','logincode':'" + $logincode.val() + "'}",
success: function (msg) {
alert(1);
},
error: function () {
alert(2);
// showvalidatecode();
}