Esempio n. 1
0
 private void GetKycByMobile(string t_id)
 {
     try
     {
         SqlDataReader sdr = ed.GetTenantsById(t_id);
         if (sdr.HasRows)
         {
             if (sdr.Read())
             {
                 string mobile = sdr["t_MobileNo"].ToString();
                 GridView1.DataSource = uc.LoadKycOfTenantsByMobile(mobile);
                 GridView1.DataBind();
             }
             sdr.Close();
         }
         else
         {
             string text = "Kyc not uploaded yet";
             ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
         }
     }
     catch (Exception ex)
     {
         string text = ex.Message.ToString();
         ScriptManager.RegisterStartupScript(this, typeof(Page), "Warning", "<script>showpoperror('" + text + "')</script>", false);
     }
 }