日期:2014-05-16 浏览次数:20651 次
//验证用户是否已经输入了密码进行了验证
function validatePassword() {
var result;
try {
$.ajax({
type: "POST",
url: "default.aspx",
data: "type=password",
asyc: false,
success: function (msg) {
if (msg.toLowerCase() == "isno") {
result = false;
alert("对不起,你还没有进行身份验证!");
} else {
result = true;
}
}
});
} catch (err) {
result = false;
alert("对不起,验证身份信息失败!");
}
alert(result);
return result;
}
System.Threading.Thread.Sleep(3000);
Response.Write(UserInfo.isyes.ToString());
Response.End();
//验证用户是否已经输入了密码进行了验证
function validatePassword() {
var result;
try {
$.ajax({
type: "POST",
url: "default.aspx",
data: "type=password",
//asyc: false,
async: false,///////你写错单词了,少了个n
success: function (msg) {
if (msg.toLowerCase() == "isno") {
result