private void setDaneshSource()
        {
            Business.Common.CommonBusiness cb = new Business.Common.CommonBusiness();
            var danesh = cb.SelectAllDaneshkade();

            ddlDaneshkade.DataSource     = danesh;
            ddlDaneshkade.DataValueField = "id";
            ddlDaneshkade.DataTextField  = "namedanesh";
            ddlDaneshkade.DataBind();
        }
Exemple #2
0
        private void setDaneshSource()
        {
            Business.Common.CommonBusiness cb = new Business.Common.CommonBusiness();
            var danesh = cb.SelectAllDaneshkade();

            drpdDanesh.DataSource     = danesh;
            drpdDanesh.DataValueField = "id";
            drpdDanesh.DataTextField  = "namedanesh";
            drpdDanesh.DataBind();
            ListItem l = new ListItem("تمام دانشکده ها", "0");

            drpdDanesh.Items.Insert(0, l);
        }