protected void TxtAccName_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string   CUNAME  = TxtAccName.Text;
         string[] custnob = CUNAME.Split('_');
         if (custnob.Length > 1)
         {
             TxtAccName.Text = custnob[0].ToString();
             TxtAccNo.Text   = (string.IsNullOrEmpty(custnob[1].ToString()) ? "" : custnob[1].ToString());
             if (TxtAccNo.Text == "")
             {
                 TxtAccName.Text = "";
                 return;
             }
             ////added by ankita on 20/07/2017
             SumIwOw();
             Photo_Sign();
             TxtCheqNo.Focus();
         }
         else
         {
             lblMessage.Text = "Invalid Account Number.........!!";
             ModalPopup.Show(this.Page);
             return;
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
         //Response.Redirect("FrmLogin.aspx", true);
     }
 }
 protected void DdlReturnType_TextChanged(object sender, EventArgs e)
 {
     try
     {
         if (DdlReturnType.SelectedValue == "1")
         {
             BindReturn("I", "C");
             LBL_IO.Text = "Inward Return";
         }
         else if (DdlReturnType.SelectedValue == "2")
         {
             BindReturn("O", "D");
             LBL_IO.Text = "Outward Return";
         }
         TxtCheqNo.Focus();
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }