Пример #1
0
        private void RateList_Fill()
        {
            RateListBiz     Obj_RateList = new RateListBiz();
            List <RateList> Obj_Rl       = Obj_RateList.GetRateLists();

            if (Obj_Rl != null && Obj_Rl.Count > 0)
            {
                grd.DataSource = Obj_Rl;
                grd.DataBind();
            }
            else
            {
                grd.DataSource = null;
                grd.DataBind();
            }
        }
Пример #2
0
        private void RateListFill()
        {
            RateListBiz     Obj_RateList    = new RateListBiz();
            List <RateList> Obj_RateList_ID = Obj_RateList.GetRateLists();

            if (Obj_RateList_ID != null && Obj_RateList_ID.Count > 0)
            {
                for (int i = 0; i < Obj_RateList_ID.Count; i++)
                {
                    ddl_RateList.Items.Add(Obj_RateList_ID[i].ID.ToString());
                }
                ddl_RateList.Items.Insert(0, new ListItem("Select Price", " "));
            }
            else
            {
                ddl_RateList.Items.Clear();
            }
        }