Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 19th, 2006, 07:57 AM
Registered User
 
Join Date: Dec 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Timer elapse event in asp.net

Hi,

I have written timer elapsed event in asp.net.But it is not firing.
I have given the following code in pageload
private static System.Timers.Timer t = new System.Timers.Timer();
t.Interval = 20000
t.Enabled = true;
t.Elapsed += new ElapsedEventHandler(t_ElapsedEventHandler);

then this is my event

private static void t_ElapsedEventHandler(object sender,ElapsedEventArgs e)
{

Label1.text="XXX";

}

but this event is not firing...Please help

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Timer ( ASP.net) C# aliusmankhan ASP.NET 2.0 Professional 6 July 21st, 2008 12:21 PM
Timer control in asp.net raj2max ASP.NET 1.0 and 1.1 Basics 3 July 18th, 2007 03:13 AM
Timer in ASP.net 1.1 wunnavabk ASP.NET 1.0 and 1.1 Professional 1 May 25th, 2007 03:36 AM
Implement Timer in asp.net Malabika Das ASP.NET 1.0 and 1.1 Professional 2 November 3rd, 2005 12:29 AM



All times are GMT -4. The time now is 01:36 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.