//string searchTXt = GridView2.SelectedValue.ToString(); string query = "SELECT * FROM ['ISB VAS Nodes$'] where id='"+DropDownList1.SelectedValue+"'"; DataSet ds = new DataSet(); SqlDataAdapter da = new SqlDataAdapter(query, connstring); da.Fill(ds); if (ds.Tables[0].Rows.Count > 0) { GridView2.DataSource = ds; GridView2.DataBind(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)