943,104 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 1412
  • ASP.NET RSS
Feb 9th, 2010
0

timer_tick event in ASp.net C#

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 2
Junior Poster
MARKAND911 is offline Offline
123 posts
since Nov 2008
Feb 9th, 2010
0
Re: timer_tick event in ASp.net C#
U can use ajax update panel place the timer there and can bind with another control.
Reputation Points: 14
Solved Threads: 9
Junior Poster in Training
kdcorp87 is offline Offline
54 posts
since Jan 2010
Feb 9th, 2010
0
Re: timer_tick event in ASp.net C#
>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.
Moderator
Reputation Points: 2134
Solved Threads: 1227
Posting Genius
adatapost is offline Offline
6,524 posts
since Oct 2008
Feb 9th, 2010
0
Re: timer_tick event in ASp.net C#
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
Reputation Points: 10
Solved Threads: 2
Junior Poster
MARKAND911 is offline Offline
123 posts
since Nov 2008
Feb 9th, 2010
0
Re: timer_tick event in ASp.net C#
Click to Expand / Collapse  Quote originally posted by MARKAND911 ...
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.
Moderator
Reputation Points: 2134
Solved Threads: 1227
Posting Genius
adatapost is offline Offline
6,524 posts
since Oct 2008
Feb 9th, 2010
1
Re: timer_tick event in ASp.net C#
A EXAM OF DIGITALCLOCK BY TTIMER, MAY BE HELP

Quote ...
<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>


ASP.NET Syntax (Toggle Plain Text)
  1. protected void Timer1_Tick(object sender, EventArgs e)
  2. {
  3.  
  4. Label1.Text = datetime.now();
  5.  
  6. }
Reputation Points: 14
Solved Threads: 9
Junior Poster in Training
kdcorp87 is offline Offline
54 posts
since Jan 2010

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: about video uploding and view in asp.net(MVC)
Next Thread in ASP.NET Forum Timeline: asp.net login with sql





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC