日期:2014-05-16 浏览次数:20481 次
function inputUser(str)
{
var b = reqUser(str, "user");
if (b==1)
{
$.ajax({
type:"post",
url: "Register.aspx/UserIsUsed",
dataType: "json",
date: { user: str },
success:function(data)
{
alert("success:"+data);
},
error: function (jqXHR, textStatus, errorThrown)
{
$(".alert-danger").html("<p>" + jqXHR + "</p><p>" + textStatus + "</p><p>" + errorThrown + "</p>");
$(".alert-danger").show();
}
});
}
else
{
return false;
}
}
[WebMethod]
public static string UserIsUsed(string user)
{
return user;
}