protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { AirTicketWeb.BLL.TInfotype bll = new AirTicketWeb.BLL.TInfotype(); DropDownList1.DataSource = bll.GetAllList(); DropDownList1.DataTextField = "name"; DropDownList1.DataValueField = "id"; DropDownList1.DataBind(); } }