DropDownList1.DataSource =getParent().Tables[0].DefaultView;
DropDownList1.DisplayMember = "zone_name";
DropDownList1.ValueMember = "zone_name";
DropDownList1.DisplayMember = "zone_name";
DropDownList1.ValueMember = "zone_name";
{
DropDownList1.DataSource=getParent();
DropDownList1.DataTextField="zone_name";
//DropDownList1.DataValueField="id";
DropDownList1.DataBind();
}
DropDownList1.DataSource = ds.Tables["tables"];
DropDownList1.DataTextField = "LoginName";
DropDownList1.DataValueField = "id";
DropDownList1.DataBind();