Posts

Showing posts from January 21, 2019

Mobile number already exist or not in C#

  mobile number already exists Private bool CheckMobNoExistOrNot (string MobileNo)         {             bool ReturnVal = false;             try             {                 if (objCon.State != ConnectionState.Open)                     ObjCon.Open();                 using (SqlCommand cmd = new SqlCommand("select COUNT(*) from tablename where ContactNo=@MobNo ", ObjCon))                 {                     cmd.Parameters.AddWithValue("@MobNo", MobileNo);                     object Obj = cmd.ExecuteScalar();                     if (Obj != ...

Popular posts from this blog

String Program in C#

CSV using XmlNode

Controller_Model. cs