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 = custnob[1].ToString(); TxtpolicyNo.Focus(); } else { WebMsgBox.Show("Account Number is Invalid....!", this.Page); txtaccno.Text = ""; txtaccno.Focus(); } CallEdit(); BindGrid("PA"); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void txtaccno_TextChanged(object sender, EventArgs e) { try { string accn = ""; string[] AN; accn = customcs.GetAccountNme(txtaccno.Text, txttype.Text, Session["BRCD"].ToString()); if (accn != null) { AN = customcs.GetAccountNme(txtaccno.Text, txttype.Text, Session["BRCD"].ToString()).Split('_'); TxtAccName.Text = AN[1].ToString(); TxtpolicyNo.Focus(); } else { WebMsgBox.Show("Account Number is Invalid....!", this.Page); txtaccno.Text = ""; txtaccno.Focus(); } CallEdit(); BindGrid("PA"); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }