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.
MARKAND911
-1
Junior Poster
Recommended Answers
Jump to PostU can use ajax update panel place the timer there and can bind with another control.
Jump to PostA 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(); }
All 5 Replies
kdcorp87
4
Junior Poster in Training
kvprajapati
1,826
Posting Genius
Team Colleague
MARKAND911
-1
Junior Poster
kvprajapati
1,826
Posting Genius
Team Colleague
kdcorp87
4
Junior Poster in Training
MARKAND911
commented:
thank you i got my solution
+0
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.