protected void TxtFBRCD_TextChanged(object sender, EventArgs e)
 {
     try
     {
         if (TxtFBRCD.Text != "")
         {
             string bname = AST.GetBranchName(TxtFBRCD.Text);
             if (bname != null)
             {
                 TxtFBRCDName.Text = bname;
                 TxtTBRCD.Focus();
             }
             else
             {
                 WebMsgBox.Show("Enter valid Branch Code.....!", this.Page);
                 TxtFBRCD.Text = "";
                 TxtFBRCD.Focus();
             }
         }
         else
         {
             WebMsgBox.Show("Enter Branch Code!....", this.Page);
             TxtFBRCD.Text = "";
             TxtFBRCD.Focus();
         }
     }
     catch (Exception Ex)
     {
         ExceptionLogging.SendErrorToText(Ex);
     }
 }
    protected void TxtFBRCD_TextChanged(object sender, EventArgs e)
    {
        if (TxtFBRCD.Text != "")
        {
            if (TxtTBRCD.Text != "" && (Convert.ToInt32(TxtFBRCD.Text) > Convert.ToInt32(TxtTBRCD.Text)))
            {
                WebMsgBox.Show("Invalid FROM and TO Branch Code....!", this.Page);
                //Clear();
                return;
            }

            string bname = AST.GetBranchName(TxtFBRCD.Text);
            if (bname != null)
            {
                TxtFBRCDName.Text = bname;
                TxtTBRCD.Focus();
            }
            else
            {
                WebMsgBox.Show("Enter valid Branch Code.....!", this.Page);
                TxtFBRCD.Text = "";
                TxtFBRCD.Focus();
            }
        }
        else
        {
            WebMsgBox.Show("Enter Branch Code!....", this.Page);
            TxtFBRCD.Text = "";
            TxtFBRCD.Focus();
        }
    }
    protected void TxtTBRCD_TextChanged(object sender, EventArgs e)
    {
        try
        {
            if (TxtTBRCD.Text != "")
            {
                string bname = AST.GetBranchName(TxtTBRCD.Text);
                if (bname != null)
                {
                    TxtTBRCDName.Text = bname;
                    //TxtFPRD.Focus();

                    if (Convert.ToInt32(TxtFBRCD.Text) > Convert.ToInt32(TxtTBRCD.Text))
                    {
                        WebMsgBox.Show("Invalid FROM and TO Branch Code....!", this.Page);
                        //Clear();
                        return;
                    }
                }
                else
                {
                    WebMsgBox.Show("Enter valid Branch Code.....!", this.Page);
                    TxtTBRCD.Text = "";
                    TxtTBRCD.Focus();
                }
            }
            else
            {
                WebMsgBox.Show("Enter Branch Code!....", this.Page);
                TxtTBRCD.Text = "";
                TxtTBRCD.Focus();
            }
        }
        catch (Exception Ex)
        {
            ExceptionLogging.SendErrorToText(Ex);
        }
    }