Timer countdown with ASP.NET AJAX

i try to develop a countdown timer (not a bomb) to open another form and close the existing one

code below i found from article :
http://stackoverflow.com/questions/109064/countdown-timer-on-asp-net-page

the count down timer has to be 1:30:60
ajaxtimer.aspx
--------------
<asp:ScriptManager ID="ScriptManager1" runat="server"> 
        </asp:ScriptManager> 
        <asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
        <ContentTemplate> 
            <asp:Label ID="Label2" runat="server">30</asp:Label> 
            <asp:Label ID="Label1" runat="server">5</asp:Label> 
            <asp:Timer ID="Timer1" runat="server" Interval="1000"  
                ontick="Timer1_Tick"> 
            </asp:Timer> 
        </ContentTemplate> 
        </asp:UpdatePanel> 

ajaxtimer.aspx.cs
-----------------
protected void Timer1_Tick(object sender, EventArgs e)
        {
            int seconds = int.Parse(Label1.Text);
            int minutes = int.Parse(Label2.Text);
            int counter = 60;


            // while (counter > 0)
            
                if (seconds > 0)
                {
                    Label1.Text = (seconds - 1).ToString();
                }
                else if (seconds == 0)
                {
                    counter -= 1;
                    Label2.Text = (minutes - 1).ToString();
                }
                else
                {
                    Timer1.Enabled = false;
                }


            }

Open in new window

LVL 1
doramail05Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

scooby_56Commented:
So we guess what the problem with this is?
doramail05Author Commented:
solved with using javascript countdown timer in another post

http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_25921191.html

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
AJAX

From novice to tech pro — start learning today.