Exemplo n.º 1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            string mobile = null;
            string Spid   = null;
            string Msg    = "";

            TokenValidate.IsRedircet = true;
            TokenValidate.Validate();
            string CustID = TokenValidate.CustID;
            if (CustID != "")
            {
                this.custidtxt.Value = CustID;
            }
            Spid = Request["SPID"] == null ? String.Empty : Request["SPID"].ToString();
            //if (Request["SPID"] != null)
            //{
            //    if (Request["SPID"].ToString() != "35000000")
            //    {
            //        Spid = Request["SPID"].ToString();
            //    }
            //    else
            //    {
            //        Spid = "35000000";
            //    }
            //}
            //else
            //{
            //    Spid = "";
            //}
            if (Request["Phone"] != null)
            {
                mobile = Request["Phone"].ToString();
                this.verifyMobile.Value = mobile;
                return;
            }

            mobile = PhoneBO.SelPhoneNumV2(this.custidtxt.Value, Spid, out Msg);
            this.verifyMobile.Value = mobile;
        }
    }