Beispiel #1
0
        protected void BuildSeasonList(int leagueId)
        {
            var season = new oSeasons();

            season = season.getSeasons(leagueId);

            foreach (var item in season.Values)
            {
                ddlSeason.Items.Add(new ListItem(item.Year.ToString(), item.ID.ToString()));
            }
        }
Beispiel #2
0
        protected void BuildSeasonList()
        {
            var season = new oSeasons();

            season = season.getSeasons(Helper.IntegerNull(Session["leagueID"]));

            foreach (var item in season.Values)
            {
                ddlSeason.Items.Add(new ListItem(item.Year.ToString(), item.ID.ToString()));
            }
        }
        private void BuildSeasonList()
        {
            var season = new oSeasons();

            season = season.getSeasons(Helper.IntegerNull(Session["leagueID"]));
            if (season.Count == 0)
            {
                Response.Redirect("~/");
            }

            foreach (var item in season.Values)
            {
                ddlSeason.Items.Add(new ListItem(item.Year.ToString(), item.ID.ToString()));
            }
        }
Beispiel #4
0
        protected void buildSeasonList(int leagueId)
        {
            oSeasons season = new oSeasons();

            season = season.getSeasons(leagueId);

            if (season.Count == 0)
            {
                Response.Redirect("~/");
            }

            foreach (oSeason item in season.Values)
            {
                ddlSeason.Items.Add(new ListItem(item.Year.ToString(), item.ID.ToString()));
            }
        }