3
Answers

How to directly extract the value from database ?

Ask a question
Black Diamond

Black Diamond

13y
1.1k
1

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();



Answers (3)