JScript codevar loginNameTxt = $("#loginName").val()
var trueName = $("#trueName").val();
var pwd = $("#txtPassword").val();
var email = $("#txtEmail").val();
var address = $("#address").val();
var telNum = $("#telNum").val();
var checkCode = $("#txtCheckCode").val();
alert("fdfdgfdgfdg");
$.post("../ashx/UserRegist.ashx", { loginName: loginNameTxt, trueName:
trueName, pwd: pwd, email: email, address: address, telNum: telNum, checkCode: checkCode
}, function (data) {
alert(data);
if (data == "0") {
//$("#checkCodeSpan").text("验证码错误");
alert("验证码错误!");
} else if (data == "1") {
alert("恭喜,注册成功!");
window.location("../Default.aspx");
} else if (data == "2") {
alert("注册失败!");
} else {
alert("未知错误!");
}
});