protected void TxtAccNo4_TextChanged(object sender, EventArgs e) { try { DataTable dt = new DataTable(); dt = CMN.GetCustNoNameGL1(TxtProcode4.Text.ToString(), TxtAccNo4.Text.ToString(), Session["BRCD"].ToString()); if (dt.Rows.Count > 0) { //Txtcustno4.Text = dt.Rows[0][0].ToString(); TxtAccName4.Text = dt.Rows[0][3].ToString(); } else { WebMsgBox.Show("Account Number not found", this.Page); TxtAccNo4.Text = ""; TxtAccName4.Text = ""; TxtAccNo4.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtProcode4_TextChanged(object sender, EventArgs e) { try { TxtProName4.Text = CMN.GetAllProductName(Convert.ToInt32(TxtProcode4.Text), Session["BRCD"].ToString()); if (TxtProName4.Text.ToString() == "") { WebMsgBox.Show("Product code not present", this.Page); TxtProcode4.Text = ""; TxtProcode4.Focus(); } else { TxtAccNo4.Focus(); } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }