conn.Open(); String sql = "select * from" + classDropDown.Text + "where id='" + idtbox.Text + "'"; using (SqlDataAdapter adapter = new SqlDataAdapter(sql, conn)) { DataTable table = new DataTable(); adapter.Fill(table); FormView1.DataSource = table; FormView1.DataBind(); } }
where id='" + idtbox.Text + "'";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)