String str1 = "select count(*) from UserInfo where [UserName]='" + this.CreateUserWizard1.UserName.Trim() + "'"; OleDbConnection conn = new OleDbConnection("ASPNETDB"); OleDbCommand cmd = new OleDbCommand(str1, conn); conn.Open(); Int32 dr2 = (Int32)cmd.ExecuteScalar(); dr2 = Convert.ToInt32(dr2); if (dr2 > 0)
count(*)
UserInfo
UserName
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)