SqlConnection cn = new SqlConnection("Data Source=SomePC\\SQLEXPRESS;Initial Catalog=SomeDB;Integrated Security=True;"); da = new SqlDataAdapter("select * from clubAC where accountno=" + txtacno .Text + "", cn); ds = new DataSet(); cn.Open(); da.Fill(ds, "clubAC");
TextBox1.Text=ds.Tables[0].Rows[0][0].ToString();
textbox1.text = Dataset.Tables[0].Rows[0][0].ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)