public DataSet SearchFromDb(string Sql)
{
DataSet ds=new DataSet();
string con_db="server=CIU_NXM;database=byzs;uid=sa;password=";
SqlConnection sc_db=new SqlConnection(con_db);
SqlDataAdapter sda=new SqlDataAdapter(Sql,sc_db);
sda.Fill(ds);
return ds;
}
if (SearchFromDb(sql_search).Tables[0].Rows.Count>0)
{
Response.Write("<script language='javascript'>alert('已存在此人的身份证号!!不能重复输入!!');</script>");
}