protected void TxtFMemName_TextChanged(object sender, EventArgs e) { try { CustName = TxtFMemName.Text.ToString(); string[] custnob = CustName.Split('_'); if (custnob.Length > 1) { TxtFMemName.Text = custnob[0].ToString(); TxtFMemNo.Text = (string.IsNullOrEmpty(custnob[1].ToString()) ? "" : custnob[1].ToString()); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }