コード例 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         string serialNumber = accountsFacade.GetPasswordCardByUserID(Fetch.GetUserCookie( ).UserID);
         if (serialNumber == "0")
         {
             Panel1.Visible = false;
             return;
         }
         else
         {
             Panel2.Visible = false;
         }
         PasswordCard pc = new PasswordCard( );
         pc.SerialNumber     = Convert.ToInt32(serialNumber);
         lbSerialNumber.Text = pc.AddSpace( );
         string[] coordinate = pc.RandomString( );
         lbNumber1.Text = coordinate[0];
         lbNumber2.Text = coordinate[1];
         lbNumber3.Text = coordinate[2];
     }
 }