protected void TxtBrcd_TextChanged(object sender, EventArgs e) { try { if (TxtBrcd.Text != "") { string bname = AST.GetBranchName(TxtBrcd.Text); if (bname != null) { TxtBrcdName.Text = bname; bindgrd(); TxtMsg.Focus(); } else { WebMsgBox.Show("Enter valid Branch Code.....!", this.Page); TxtBrcd.Text = ""; TxtBrcd.Focus(); } } else { WebMsgBox.Show("Enter Branch Code!....", this.Page); TxtBrcd.Text = ""; TxtBrcd.Focus(); } } catch (Exception ex) { ExceptionLogging.SendErrorToText(ex); } }
protected void TxtMemName_TextChanged(object sender, EventArgs e) { try { string MMNAME = TxtMemName.Text; string[] memnob = MMNAME.Split('_'); if (memnob.Length > 1) { TxtMemName.Text = memnob[0].ToString(); TxtMemNo.Text = (string.IsNullOrEmpty(memnob[1].ToString()) ? "" : memnob[1].ToString()); } else { WebMsgBox.Show("Enter valid Member Name..!!", this.Page); TxtMemNo.Text = ""; TxtMemName.Text = ""; TxtMemName.Focus(); return; } TxtBrcd.Focus(); } catch (Exception ex) { ExceptionLogging.SendErrorToText(ex); } }
protected void Page_Load(object sender, EventArgs e) { try { TxtBrcd.Focus(); } catch (Exception Ex) { ExceptionLogging.SendErrorToText(Ex); } }
protected void TxtMemNo_TextChanged(object sender, EventArgs e) { try { TxtMemName.Text = BD.GetMemName(TxtMemNo.Text); if (TxtMemName.Text == "") { WebMsgBox.Show("Enter Valid Member No..!!", this.Page); TxtMemNo.Text = ""; TxtMemName.Text = ""; TxtMemNo.Focus(); return; } TxtBrcd.Focus(); } catch (Exception ex) { ExceptionLogging.SendErrorToText(ex); } }