protected void Page_Load(object sender, EventArgs e)
        {
            //
            User_AgentInfo info = Get_User_Agent_Info();

            width = info.resolution_width;
            if (ConvertUtility.ToInt32(width) == 0 || ConvertUtility.ToInt32(width) >= 480)
            {
                width = ConvertUtility.ToString((int)Constant.DefaultScreen.Standard);
            }
            //query param
            int    is3g   = 0;
            string msisdn = MobileUtils.GetMSISDN(out is3g);

            //#region Hai them vao ngay 16/02/2012
            //if (String.IsNullOrEmpty(msisdn) && Session["msisdn"] == null)
            //    msisdn = this.GetVietnamobileMsisdn();
            //#endregion
            Session["is3g"] = is3g;

            #region MSISDN

            if (!string.IsNullOrEmpty(msisdn) && MobileUtils.CheckOperator(msisdn, "vietnammobile"))
            {
                Session["telco"]  = Constant.T_Vietnamobile;
                Session["msisdn"] = msisdn;

                WapController.WapUserLog(msisdn, 0, string.Empty, 1);
            }
            else
            {
                Session["msisdn"] = null;
                Session["telco"]  = Constant.T_Undefined;
            }

            #endregion



            //#region Sport Game Hero

            //if(AppEnv.isMobileBrowser())
            //{
            //    DataTable dtUrl = WapController.VnmGetUrl();

            //    if (dtUrl != null && dtUrl.Rows[0]["IsLog"].ToString() == "1")
            //    {
            //        if (Session["msisdn"] != null)
            //        {
            //            DataTable dt = WapController.VnmCheckBlackList(Session["msisdn"].ToString());
            //            if (dt.Rows.Count == 0)
            //            {
            //                string resUrl = dtUrl.Rows[0]["ResUrl"].ToString();
            //                Response.Redirect(resUrl);
            //            }
            //        }
            //    }
            //}

            //#endregion

            string urlRes = AppEnv.GetSetting("WapDefault") + UrlProcess.GetWapHomeUrl("1", width).Replace("~", "");
            if (AppEnv.isMobileBrowser())
            {
                string model = AppEnv.GetUserAgent();
                if (model == "high")
                {
                    urlRes = AppEnv.GetSetting("WapDefault") + "/trang-chu.aspx";
                    //urlRes = AppEnv.GetSetting("WapDefault") + "/login.aspx";
                }
                else
                {
                    urlRes = AppEnv.GetSetting("WapDefault") + "/Wap/Default.aspx?lang=1&w=320";
                }
            }
            else
            {
                urlRes = AppEnv.GetSetting("WapDefault") + "/Wap/Default.aspx?lang=1&w=320";
            }
            logger.Debug(urlRes);
            //urlRes = AppEnv.GetSetting("WapDefault") + "/login.aspx";
            //urlRes = AppEnv.GetSetting("WapDefault") + "/trang-chu.aspx";
            Response.Redirect(urlRes);
            //Response.Redirect("NotFound.aspx");

            //if (ConvertUtility.ToInt32(AppEnv.GetSetting("NewUrl")) == 1)
            //{
            //    Response.Redirect(AppEnv.GetSetting("WapDefault") + UrlProcess.GetWapHomeUrlNew("1", width).Replace("~", ""));
            //}
            //else
            //{
            //    Response.Redirect(AppEnv.GetSetting("WapDefault") + UrlProcess.GetWapHomeUrl("1", width).Replace("~", ""));
            //    //Response.Redirect("showpopup.aspx");
            //}
        }