shahab
Junior Contributor
Is it posible to bind and show more than one column of msSql database in just one DDL?
Code:
void DDL1Binder()
{
string strCon = ConfigurationSettings.AppSettings["ConnStr"];
SqlConnection wg = new SqlConnection(strCon);
SqlDataAdapter dtAdap1 = new
SqlDataAdapter("select a,b,c from tbl ",wg);
dtAdap1.Fill(ds1, "tbl");
DropDownList1.DataSource = ds1.Tables["tbl"].DefaultView;
DropDownList1.DataBind();
}
Is it possible to show a,b,c all together in DropDownList1?
Code please:)