小新新2015

导航

 
string sql = " SELECT COUNT(Mobile) mcount FROM dbo.Yuanboguoji_student WHERE  Mobile='" + txtMobile.Text.Trim() + "'";
DataSet ds = DbHelperSQL.Query(sql);
int mcount = Convert.ToInt32(ds.Tables[0].Rows[0][0]);
if (mcount > 0)
{
    this.ClientScript.RegisterStartupScript(this.GetType(), "", "<script>alert(\"" + "号码已经存在;" + "\");location.reload();</script>");
    return;
}
posted on 2015-07-10 14:14  小新新2015  阅读(251)  评论(0编辑  收藏  举报