protected void Txtdiv3name_TextChanged(object sender, EventArgs e) { try { CUNAME = Txtdiv3name.Text; string[] custnob = CUNAME.Split('_'); if (custnob.Length > 1) { Txtdiv3name.Text = custnob[0].ToString(); Txtdiv3.Text = (string.IsNullOrEmpty(custnob[1].ToString()) ? "" : custnob[1].ToString()); Submit.Focus(); return; } else { Txtdiv3.Text = ""; Txtdiv3name.Text = ""; lblMessage.Text = "Enter valid Product code...!!"; ModalPopup.Show(this.Page); Txtdiv3.Focus(); return; } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void Txtdiv3_TextChanged(object sender, EventArgs e) { try { AC1 = SP.Getaccno(Txtdiv3.Text, Session["BRCD"].ToString()); if (AC1 != null) { string[] AC = AC1.Split('_');; Txtdiv3name.Text = AC[1].ToString(); Submit.Focus(); return; } else { Txtdiv3.Text = ""; Txtdiv3name.Text = ""; lblMessage.Text = "Enter valid Product code...!!"; ModalPopup.Show(this.Page); Txtdiv3.Focus(); return; } } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }