示例#1
0
 protected void btn_FindSecurityCode_Click(object sender, EventArgs e)
 {
     if (Page.IsValid)
     {
         if (!string.IsNullOrWhiteSpace(txtCodeMeli.Text))
         {
             DataTable FetchSecurityCodRow = ProfCommonBusiness.GetInfoPeoByCodeMeliINAspNetUsers(txtCodeMeli.Text);
             if (FetchSecurityCodRow.Rows.Count > 0)
             {
                 divSecurityCode.Visible = true;
                 lblName.Text            = FetchSecurityCodRow.Rows[0]["name"].ToString();
                 lblFamily.Text          = FetchSecurityCodRow.Rows[0]["family"].ToString();
                 lblCodeMeli.Text        = FetchSecurityCodRow.Rows[0]["idd_meli"].ToString();
                 lblSecuritCode.Text     = FetchSecurityCodRow.Rows[0]["Securityid"].ToString();
             }
             else
             {
                 divAlarm.Visible = true;
                 if (divSecurityCode.Visible == true)
                 {
                     divSecurityCode.Visible = false;
                 }
             }
         }
     }
 }