Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 544.2k

value of userid from table

Aug 20 2024 4:07 AM

Hi

  I have below code and i want to get the value of userid from table

SqlCommand cmd = new SqlCommand("Users", con);
cmd.CommandType = CommandType.Text;
con.Open();

cmd.ExecuteNonQuery();
int Status = Convert.ToInt32(cmd.ExecuteScalar());

Thanks


Answers (1)