protected void txtacconam_TextChanged(object sender, EventArgs e)
 {
     try
     {
         string   CUNAME  = txtname.Text;
         string[] custnob = CUNAME.Split('_');
         if (custnob.Length > 1)
         {
             txtname.Text  = custnob[0].ToString();
             txtcstno.Text = (string.IsNullOrEmpty(custnob[1].ToString()) ? "" : custnob[1].ToString());
             if (ViewState["Flag"].ToString() != "AD")
             {
                 txtaccno.Focus();
             }
             else
             {
                 Ddlacctype.Focus();
             }
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
     rdbmom.Focus();
 }
Example #2
0
 protected void DDLReturn_SelectedIndexChanged(object sender, EventArgs e)
 {
     try
     {
         TxtTReturnType.Text = BD.GetRetrunType(DDLReturn.SelectedItem.Text.ToString());
         TxtTReturnType.Text = DDLReturn.SelectedValue;
         Ddlacctype.Focus();
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
    protected void txtcustid_TextChanged(object sender, EventArgs e)
    {
        try
        {
            if (txtcustid.Text.ToString() == "")
            {
                return;
            }
            txtacconam.Text = CMN.GetCustName(txtcustid.Text.ToString(), Session["BRCD"].ToString());

            if (txtacconam.Text == "")
            {
                WebMsgBox.Show("Customer Not found", this.Page);
                txtcustid.Focus();
            }
            Ddlacctype.Focus();
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }