protected void TxtFaccno_TextChanged(object sender, EventArgs e) { { try { string[] AN; AN = customcs.GetAccountName(TxtFaccno.Text, TxtFprdcode.Text, Session["BRCD"].ToString()).Split('_'); if (AN != null) { TxtFaccname.Text = AN[1].ToString(); TxtTaccno.Focus(); } else { WebMsgBox.Show("Account Number is Invalid....!", this.Page); TxtFaccno.Text = ""; TxtFaccno.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } } }
protected void TxtTprdname_TextChanged(object sender, EventArgs e) { try { string custno = TxtTprdname.Text; string[] CT = custno.Split('_'); if (CT.Length > 0) { TxtTprdname.Text = CT[0].ToString(); TxtTprdcode.Text = CT[1].ToString(); TxtTaccno.Focus(); string[] GLS = BD.GetAccTypeGL(TxtTprdcode.Text, Session["BRCD"].ToString()).Split('_'); ViewState["DRGL"] = GLS[1].ToString(); autoAccname1.ContextKey = Session["BRCD"].ToString() + "_" + TxtTprdcode.Text + "_" + ViewState["DRGL"].ToString(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtTaccname_TextChanged(object sender, EventArgs e) { try { string CUNAME = TxtTaccname.Text; string[] custnob = CUNAME.Split('_'); if (custnob.Length > 1) { TxtTaccname.Text = custnob[0].ToString(); TxtTaccno.Text = custnob[1].ToString(); } else { WebMsgBox.Show("Account Number is Invalid....!", this.Page); TxtTaccno.Text = ""; TxtTaccno.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }