How to directly extract the value from database ?
hi everyone,
how to direct extract the value from database? I wan't to extract the votes value and convert it into integer, how can i do that?
SqlCommand decrementVotes=new SqlCommand("Select Votes FinalVotes where Names='"+btnCandidates1.Text+"'", conn);
conn.Open();
decrementVotes.ExecuteNonQuery();
conn.Close();