1
Answer

value of userid from table

Ramco Ramco

Ramco Ramco

Aug 20
203
1

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)