Black Diamond

Black Diamond

  • NA
  • 236
  • 108.5k

How to directly extract the value from database ?

Sep 9 2011 6:04 AM

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)