protected void TxtDebitPrdName_TextChanged(object sender, EventArgs e) { try { string custno = TxtDebitPrdName.Text; string[] CT = custno.Split('_'); if (CT.Length > 0) { TxtDebitPrdName.Text = CT[0].ToString(); TxtDebitPrdCode.Text = CT[1].ToString(); string[] GLS = BD.GetAccTypeGL(TxtDebitPrdCode.Text, Session["BRCD"].ToString()).Split('_'); ViewState["DRGL"] = GLS[1].ToString(); //AutoAccname.ContextKey = Session["BRCD"].ToString() + "_" + TxtProcode.Text + "_" + ViewState["DRGL"].ToString(); if (TxtDebitPrdName.Text == "") { WebMsgBox.Show("Please enter valid Product code", this.Page); TxtDebitPrdCode.Text = ""; TxtDebitPrdCode.Focus(); } else { TxtDiviRate.Focus(); } } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); //Response.Redirect("FrmLogin.aspx", true); } }
protected void TxtDebitPrdCode_TextChanged(object sender, EventArgs e) { try { string TD = BD.GetAccTypeGL(TxtDebitPrdCode.Text, Session["BRCD"].ToString()); string[] TD1 = TD.Split('_'); if (TD1.Length > 1) { } TxtDebitPrdName.Text = TD1[0].ToString(); ViewState["TGL"] = TD1[1].ToString(); TxtDiviRate.Focus(); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }