示例#1
0
        public void loadDichVuAll()
        {
            var list = dvdal.GetList();

            Repeater_dichvu.DataSource = list;
            Repeater_dichvu.DataBind();
        }
示例#2
0
        private void LoadCB()
        {
            var listDV = dichVuService.GetList();

            dr_dichvu.DataTextField  = "TEN_DICH_VU";
            dr_dichvu.DataValueField = "MA_DV";
            dr_dichvu.DataSource     = listDV;

            if (ViewState["id_dich_vu"] != null)
            {
                string dichvuChecked = ViewState["id_dich_vu"].ToString();
                dr_dichvu.ClearSelection();
                dr_dichvu.Items.FindByValue(dichvuChecked).Selected = true;
            }
            dr_dichvu.DataBind();
            var listCN = chiNhanhService.GetList();

            dr_chinhanh.DataValueField = "MA_CN";
            dr_chinhanh.DataTextField  = "TEN_CHI_NHANH";
            dr_chinhanh.DataSource     = listCN;
            dr_chinhanh.DataBind();

            ViewState["contact_load"] = true;
        }