Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                return;
            }
            //if (Session["Lang"] == null)
            //{
            //    Session["Lang"] = "ar-SA";
            //    //btnLang.Text = "Change Language";
            //    Session["ddlSelectLang"] = "الرجاء إختيار";
            //}
            S.Lang = (CommonMethods.GetCookieValue("Site_Language") == null) ? "en-US": CommonMethods.GetCookieValue("Site_Language");
            DataSet DS = S.GetAllShows();

            if (DS.Tables[0].Rows.Count == 0)
            {
                S.Lang = "en-US";
                DS     = S.GetAllShows();
            }
            rpShows.DataSource = DS.Tables[0];
            rpShows.DataBind();
        }