///
/// 用户名是否存在
///
[WebMethod]
public void IsUsernameExist(string username)
{
string result = "false";
try
{
//...
//...
}
catch (Exception e)
{
result = "true";
}
finally
{
}
HttpContext.Current.Response.Write(result );
}
不用解析,直接就是true或者false