Exemple #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ListLeague  = LeagueHelper.SelectLeague();
     ListScoope  = NewsHelper.ScoopeList();
     ListHotNews = NewsHelper.HotNewsList();
     if (!IsPostBack)
     {
         var httpCookie = Request.Cookies["LeagueId"];
         if (httpCookie != null && httpCookie.Value != "")
         {
             JqgridMatchFullResultBinding(Convert.ToInt32(httpCookie.Value));
             JqgridMatchBinding(Convert.ToInt32(httpCookie.Value));
             JqgridSulvoStarBinding(Convert.ToInt32(httpCookie.Value));
         }
         else
         {
             if (ListLeague != null && ListLeague.Any())
             {
                 var leagueId = ListLeague.First().LeagueId;
                 JqgridMatchFullResultBinding(leagueId);
                 JqgridMatchBinding(leagueId);
                 JqgridSulvoStarBinding(leagueId);
             }
         }
     }
 }