You can increase the timer interval by setting the text value of label above
C#:
protectedvoidPage_Load(object sender,EventArgs e){Timer2.Enabled=true;Timer2.Interval=1000;Timer2.Tick+=newEventHandler<EventArgs>(Timer1_Tick);}voidTimer1_Tick(object sender,EventArgs e){int i =(Convert.ToInt16(Label1.Text));
i = i -1;Label1.Text= i.ToString();if(i <0){//Time up Send your mail here}}
Member
130 Points
656 Posts
timer and updatepanel
Feb 14, 2014 06:45 AM|Jdaniel13|LINK
i have created a duration label that take the end date - the actual date
but when i have insert a new updatepanel, it stop to work by?
Participant
1322 Points
947 Posts
Re: timer and updatepanel
Feb 14, 2014 06:49 PM|WishStar99|LINK
can you post your html and code?
All-Star
50831 Points
9895 Posts
Re: timer and updatepanel
Feb 14, 2014 06:58 PM|A2H|LINK
Hi,
Are you trying to create a count down timer. if so you can try with the below code
HTML Mark up:
You can increase the timer interval by setting the text value of label above
C#:
You can check the below link
Alternatively you can also try implementing the counter using Jquery
Aje
My Blog | Dotnet Funda