예제 #1
0
        private void LoadFees()
        {
            var repSeasons = new SeasonRepository(new CSBCDbContext());

            try
            {
                var seasonFees = repSeasons.GetSeasonFees((int)Session["SeasonID"]);
                cmbFees.DataSource = seasonFees;
                cmbFees.DataValueField = "Name";
                cmbFees.DataTextField = "Amount";
                cmbFees.DataBind();
                //IQueryable<seasonFees> rsdata = seasonFees;
                //rsData = oSeasons.GetSeasonFees(Session["SeasonID"], Session["CompanyID"]);
                //if (rsData.Rows.Count == 0)
                //    return;

                /*var _with11 = cmbFees;
                _with11.DataSource = rsData;
                _with11.DataValueField = "Fee";
                _with11.DataTextField = "Fee";
                _with11.DataBind();
                _with11.SelectedIndex = 2;    */
            }
            catch (Exception ex)
            {
                lblError.Text = "LoadFees::" + ex.Message;
            }
        }