protected void TxtPRD_TextChanged(object sender, EventArgs e) { try { if (TxtBRCD.Text != "") { TxtPRDName.Text = AST.GetAccType(TxtPRD.Text, TxtBRCD.Text); string[] GL = BD.GetAccTypeGL(TxtPRD.Text, TxtBRCD.Text).Split('_'); TxtPRDName.Text = GL[0].ToString(); ViewState["GL"] = GL[1].ToString(); autoglnameA.ContextKey = TxtBRCD.Text + "_" + TxtPRD.Text + "_" + ViewState["GL"].ToString(); TxtAC.Focus(); } else { WebMsgBox.Show("Enter Branch Code First....!", this.Page); TxtPRD.Text = ""; TxtBRCD.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }