Author: aurelkurtula | Posted on: 11/28/2009 11:14:47 PM | Views : 255

i am trying to run few if statements, but only the first one works


if ( TextBox1.Text == System.Convert.ToString(row["number1"]) ) { i++; } //i is an intiger set at the top if ( TextBox2.Text == System.Convert.ToString(row["number2"]) ) { i++; } //i is an intiger set at the top if ( TextBox3.Text == System.Convert.ToString(row["number3"]) ) { i++; } //i is an intiger set at the top if ( TextBox4.Text == System.Convert.ToString(row["number4"]) ) { i++; } //i is an intiger set at the top if ( TextBox5.Text == System.Convert.ToString(row["number5"]) ) { i++; } //i is an intiger set at the top if ( TextBox6.Text == System.Convert.ToString(row["number6"]) ) { i++; } //i is an intiger set at the top

even though each of the statments are the sa ...

Go to the complete details ...