0

How to get timer_tick event in Asp.net.
i am making one web server control. i want to add timer control in its property. please give some examples of property which uses timer control in it.

3
Contributors
5
Replies
6
Views
7 Years
Discussion Span
Last Post by kdcorp87
0

>i am making one web server control. i want to add timer control in its property.

Can you maybe provide some more information about what it is you are trying to do?

>How to get timer_tick event in Asp.net.

Remember that including timer_tick and all your code-behind is executed on the server only.

Take a look at the setTimeout() and setInterval() javascript functions and also see (ajax) post #2.

0

i want to make one server control which takes ImageFolder as input and time in seconds as input. And this control rotates the images from ImageFolder for every time provided as input

0

i want to make one server control which takes ImageFolder as input and time in seconds as input. And this control rotates the images from ImageFolder for every time provided as input

Read post #2 and #3.

1

A EXAM OF DIGITALCLOCK BY TTIMER, MAY BE HELP

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Font-Bold="True"
Font-Names="Comic Sans MS" ForeColor="Maroon"></asp:Label>
<asp:Timer ID="Timer1" runat="server" Interval="1000" ontick="Timer1_Tick">
</asp:Timer>
</ContentTemplate>
</asp:UpdatePanel>

protected void Timer1_Tick(object sender, EventArgs e)
    {
     
        Label1.Text = datetime.now();
     
    }
Votes + Comments
thank you i got my solution
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.