Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         StoreUser           User   = new StoreUser();
         StoreUserController IdCard = new StoreUserController();
         User.UserName = Session["UserName"].ToString();
         string   a  = IdCard.Idcard(User);
         string[] ab = a.Split('m');
         PW = ab[1];
         Id = ab[0];
         if (ab[0].Length == 15)
         {
             string b = ab[0].Substring(0, 3);
             string c = ab[0].Substring(11, 3);
             string d = b + "*********" + c;
             this.tbxFormerIdCard.Text = d;
         }
         if (ab[0].Length == 18)
         {
             string b = ab[0].Substring(0, 3);
             string c = ab[0].Substring(15, 3);
             string d = b + "************" + c;
             tbxFormerIdCard.Text = d;
         }
     }
 }