How to blink/flash a lable based on the status of database data

I want to refresh page every 15 seconds and dispaly total amount based on the data (Total Amount from database). If Total amount is greater than 10000, The amount lable will display amount with blink/flash otherwise just display label text no flush. Please advise how to make this work. See below code. Very appreciated with your help. I am using IE8 with .net 4.0 UpdatePanel
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:ScriptManager runat="server" id="ScriptManager1">
    <asp:UpdatePanel runat="server" id="UpdatePanel1">
        <asp:Timer runat="server" id="Timer1" Interval="15000" OnTick="Timer1_Tick"></asp:Timer>
        <asp:Label runat="server" id="lblAmt" Text="" ForeColor="White"></asp:Label>    
        <br />
        <asp:Label runat="server" ForeColor="White"  Font-Size="Medium" Text="Page not refreshed yet." id="lblTime"


C# code-behind

 DisplayService eService = new DisplayService(Constants.Connections.Display_DB);

        Decimal _TotalAmt;
        bool _DisplayStatus

        private Decimal TotalAmt
            get { return _BTotalAmt; }
            set { _TotalAmt = value; }

        private bool DisplayStatus
            get { return _DisplayStatus; }
            set { _DisplayStatus = value; }

        protected void Page_Load(object sender, EventArgs e)

            DisplayEntity entry = eService.GetRunningTotal();
            TotalAmt = entry .RunningTotalAmt;
            if (TotalAmt >= 10000)
                  DisplayStatus = true;
        protected void Timer1_Tick(object sender, EventArgs e)
            lblTime.Text = "Panel refreshed at: " + DateTime.Now.ToString();
            lblAmt.Text = "<big><big><big><big>$" + Convert.ToDecimal(TotalAmt) + "</big></big></big></big>";
            if (DisplayStatus )
            // question here, to be done???
                how to make the lblAmt.Text blink and flash with different color

Who is Participating?
dejaanbuConnect With a Mentor Commented:
how about changing the backcolor or forecolor of that label?

if(lblAmt.BackColor == Color.White)
      lblAmt.BackColor = Color.Red;
      lblAmt.BackColor = Color.White;
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.