Пример #1
0
    private void BindDepart()
    {
        DALDepart dalDepart = new DALDepart();

        ddlDepart.DataSource = dalDepart.GetDeparts();
        ddlDepart.DataTextField = "DepartName";
        ddlDepart.DataValueField = "DepartId";
        ddlDepart.DataBind();
    }