how to implement timer in asp.net c# : i want to implement a timer in asp.net web in which after a time period the text of button is changed. i created the button dynamically in gridview.
i tried this code.

 protected void Timer2_Tick(object sender, EventArgs e)
        {

            Label2.Text = "Panel refreshed at: " +
            DateTime.Now.ToLongTimeString();

           for(int i=0;i<rowcount;i++)
            {
                Button button = new Button();
                if (button.Text == "requested")
                {
                    button.Text = "available";
                }
            }
        }
but this code not work