[WebMethod]
public string MobilePhone(string mobile,string mobilePwd)
{
if (mobile == null || mobilePwd.Length != 11)
return "你输入的有误!!";
string st = mobile.Substring(0, 2);
if (st != "13" || st != "15" || st != "18" || st != "19")
return "手机号的长度不够!!";
if (mobilePwd != "123456")
return "NO";
return "YES";
}
// 在ASP下我是这么写的啊!!我在index.aspx页上有两个文本控件。
localhost.WebService5 lw = new localhost.WebService5();
string strMobilePhone = TextBox7.Text.Trim().ToString();
string strPwd = TextBox8.Text.Trim().ToString();
lw.MobilePhone(strMobilePhone, strPwd);-----》 怎么不好用呢 ??
慕姐4208626
蝴蝶刀刀
慕容3067478
随时随地看视频慕课网APP
相关分类