private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { SqlConnection con = new SqlConnection("Data Source=.;AttachDbFilename=C:\\Program Files\\Microsoft SQL Server\\MSSQL12.MSSQLSERVER\\MSSQL\\DATA\\enq.mdf;Integrated Security=True;Connect Timeout=30"); con.Open(); String str = "select * from Air where Air_To = '" + comboBox2.Text + "'and Air_From = '" + comboBox1.Text + "'"; SqlCommand cmd = new SqlCommand(str, con); SqlDataReader dr = cmd.ExecuteReader(); if (dr.Read()) { textBox1.Text = dr["Air_dist"].ToString(); richTextBox1.Text = dr["Air_departure"].ToString(); }
Quote: i need help to display all the timings.
Gridview
repeater
SqlDataReader
SqlDataAdapter
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)