protected void TxtCust_TextChanged(object sender, EventArgs e)
    {
        try
        {
            string sql, AT;
            sql = AT = "";

            if (TxtCust.Text == "")
            {
                return;
            }
            string custname = accop.GetcustnameYN(accop.GetCENTCUST(), TxtCust.Text, Session["BRCD"].ToString());

            if (custname != null)
            {
                string[] name = custname.Split('_');
                txtname.Text = name[0].ToString();
            }

            string RC = txtname.Text;
            if (RC == "")
            {
                WebMsgBox.Show("Customer not found", this.Page);
                TxtCust.Text = "";
                TxtCust.Focus();
                return;
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }
Example #2
0
 protected void Txtfrmbrcd_TextChanged(object sender, EventArgs e)
 {
     TxtCust.Focus();
 }