this is raju from hyd |
|
Posted By
boda.raju
on
5/13/2008 2:07:33 PM |
|
|
|
Description: |
Description:
hi , first ur selected tables in dropdownlist dynamically(ie, through properties) then write
code under dropdownlist
string tab = DropDownList1.SelectedItem .ToString();
SqlConnection cn = new SqlConnection("Data Source=AMSOL-601;Initial Catalog=bn.raju;User ID=sa");
SqlDataAdapter da = new SqlDataAdapter("select *from " + tab + "", cn);
DataSet ds = new DataSet();
da.Fill(ds, "exa");
GridView1.DataSource = ds;
GridView1.DataBind(); |
|
|
|