string sql = String.Format("select username from users where username='{0}'", this.txt_dlm.Text.Trim());
SqlCommand cm = new SqlCommand(sql, mycon.myconn);
if (cm.ExecuteScalar() != null)
{
this.Label1.Text = "<script language='javascript'>alert('该登陆名已经被使用,请使用其它登陆名~!');</script>";
}