protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!IsPostBack)
         {
             TxtBrcd.Text           = Session["BRCD"].ToString();
             TxtBrcdName.Text       = AST.GetBranchName(TxtBrcd.Text);
             automemname.ContextKey = TxtBrcd.Text;
             autoglname.ContextKey  = TxtBrcd.Text;
             bindgrid();
             TxtMemNo.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);
     }
 }