I have array
an I need insert data from database to textbox1
I tried it but it doesn't work for me
C#:
string[] pole = new string[3] {textBox1.Text, textBox2.Text, textBox3.Text };
an I need insert data from database to textbox1
C#:
SqlCommand cmd = new SqlCommand("SELECT * FROM database ", con);
SqlDataReader dr = cmd.ExecuteReader();
I tried it but it doesn't work for me
C#:
pole[0] = dr.GetValue(1).ToString();