protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var context = new MOMEntities(); var list = context.DEPARTMENTTABLE.ToList(); Dep.DataSource = list; Dep.DataTextField = "DEPARTMENT"; Dep.DataValueField = "KEY"; Dep.DataBind(); } }