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); } }