예제 #1
0
 protected void txtSupplierMainAcNo_TextChanged(object sender, EventArgs e)
 {
     try
     {
         lblchecksupplacccode.Text = "";
         DataSet ds = _objBoutility.CheckAccCode_ExistorNot(txtSupplierMainAcNo.Text, "MainAcc");
         if (ds.Tables[0].Rows.Count > 0)
         {
             lblchecksupplacccode.Text      = "Alredy Exist";
             lblchecksupplacccode.ForeColor = System.Drawing.Color.Red;
         }
         else
         {
             lblchecksupplacccode.Text      = "Available";
             lblchecksupplacccode.ForeColor = System.Drawing.Color.DarkBlue;
         }
     }
     catch (Exception ex)
     {
         lblMsg.Text = _objBoutility.ShowMessage("danger", "error", ex.Message);
         ExceptionLogging.SendExcepToDB(ex);
     }
 }