Click here to Skip to main content
15,886,067 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Need Help to read my mail from my gmail Pin
Ashfield8-Mar-09 9:01
Ashfield8-Mar-09 9:01 
AnswerRe: Need Help to read my mail from my gmail Pin
Christian Graus8-Mar-09 14:15
protectorChristian Graus8-Mar-09 14:15 
GeneralRe: Need Help to read my mail from my gmail Pin
_Maxxx_8-Mar-09 20:47
professional_Maxxx_8-Mar-09 20:47 
QuestionDataSets Pin
Illegal Operation7-Mar-09 17:24
Illegal Operation7-Mar-09 17:24 
AnswerRe: DataSets Pin
Blue_Boy7-Mar-09 22:14
Blue_Boy7-Mar-09 22:14 
AnswerRe: DataSets Pin
Xmen Real 7-Mar-09 23:32
professional Xmen Real 7-Mar-09 23:32 
GeneralRe: DataSets Pin
Xmen Real 7-Mar-09 23:33
professional Xmen Real 7-Mar-09 23:33 
QuestionStatic Timer in WebSite Pin
Masterhame7-Mar-09 10:48
Masterhame7-Mar-09 10:48 
I want change information in my web site by advancing time

for example:

I want to add 10score to all acounts every 5 minutes



I wrote a code like this:

public static class CoreTimer
{

    public static System.Windows.Forms.Timer GlobalTimer =
              new System.Windows.Forms.Timer();

    static TimeSpan TikDuration;

    public static int TikCount = 0;

    public static void SetTikDuration(string time)
    {
        TikDuration = TimeSpan.Parse(time);
    }

    public static void CoreTimerStarter()
    {
        GlobalTimer.Tick += new EventHandler(AdvanceTime);
        GlobalTimer.Interval = 300000;   //5 minutes
        GlobalTimer.Enabled = true;
        GlobalTimer.Start();
    }


    static void AdvanceTime(object sender, EventArgs e)
    {
        //Adding Scores to accounts
    }
}


but AdvanceTime never run!!!!!!

what can I do?


how can I run a function evey 5minutes in website background????!!!
Confused | :confused:


.
AnswerRe: Static Timer in WebSite Pin
Yusuf7-Mar-09 12:20
Yusuf7-Mar-09 12:20 
GeneralRe: Static Timer in WebSite Pin
Masterhame7-Mar-09 17:03
Masterhame7-Mar-09 17:03 
GeneralRe: Static Timer in WebSite Pin
Yusuf8-Mar-09 1:46
Yusuf8-Mar-09 1:46 
GeneralRe: Static Timer in WebSite Pin
AprNgp8-Mar-09 2:02
AprNgp8-Mar-09 2:02 
QuestionC#, .net, prototype, design [modified] Pin
software1017-Mar-09 6:53
software1017-Mar-09 6:53 
RantRe: C#, .net, prototype, design Pin
Xmen Real 7-Mar-09 14:36
professional Xmen Real 7-Mar-09 14:36 
AnswerAdmin's please remove this ad. Thanks! Pin
leckey7-Mar-09 15:44
leckey7-Mar-09 15:44 
AnswerRe: C#, .net, prototype, design Pin
ABitSmart7-Mar-09 18:27
ABitSmart7-Mar-09 18:27 
AnswerRe: C#, .net, prototype, design Pin
Christian Graus8-Mar-09 11:52
protectorChristian Graus8-Mar-09 11:52 
Questionpage validating in javascript Pin
emilio_ts7-Mar-09 2:48
emilio_ts7-Mar-09 2:48 
AnswerRe: page validating in javascript Pin
emilio_ts7-Mar-09 3:00
emilio_ts7-Mar-09 3:00 
QuestionHow To Check Who is online? Pin
farogh haider7-Mar-09 2:45
farogh haider7-Mar-09 2:45 
AnswerRe: How To Check Who is online? Pin
N a v a n e e t h7-Mar-09 6:11
N a v a n e e t h7-Mar-09 6:11 
QuestionJavascript Enabled and disable... Pin
Sasmi_Office7-Mar-09 2:38
Sasmi_Office7-Mar-09 2:38 
AnswerRe: Javascript Enabled and disable... Pin
N a v a n e e t h7-Mar-09 6:18
N a v a n e e t h7-Mar-09 6:18 
QuestionRSA Pin
M.Ambigai7-Mar-09 1:58
M.Ambigai7-Mar-09 1:58 
AnswerRe: RSA Pin
N a v a n e e t h7-Mar-09 6:20
N a v a n e e t h7-Mar-09 6:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.