Da = new SqlDataAdapter("select * from tblorder where bookingdate='txtform.text'",con1); DataTable dt = new DataTable(); Da.Fill(dt); GridView1.DataSource = dt; GridView1.DataBind();
SqlCommand cmd = new SqlCommand("select * from Table1",conObject); SqlDataReader dr = cmd.ExecuteReader(); dr.Read(); if (TextBox1.Text == dr.GetString(0)) // 0 is 1st column { //Do as your wish }}
Da = new SqlDataAdapter("select * from tblorder where bookingdate='" + txtform.text + "'",con1);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)