Ramco Ramco

Ramco Ramco

  • 422
  • 3.4k
  • 489.5k

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)