Ramco Ramco

Ramco Ramco

  • 443
  • 3.4k
  • 526.4k

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)