Community discussion forum

Calling a method (after specific interval of time)

  • 9 months ago

    <Calling a method (after specific interval of time)> 

    Hi guys

    Need some real help.....
    In an asp.net web application (using vb.net) I have made a method ( method name is my_ping() ).

    Now the problem is a need a loop that would call this method after every 5 minutes or after any period of time that we define, say 10minutes, 5minutes, 25 seconds whatever.

    This is the main issue that how do i write such a loop (or any control statement) that would call this methjod after a specific interval of time.

    Secondly, we should able to stop this loop when we press stop button or when we unload this form. (This is not that tough though.)

    Anyone could help me guys...

    Cheers

    Harp.

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 9 months ago

    Hi,

    since timer is not supported by ASP.net . You will have to use ajax for this.

    Refer to the link below:

    http://www.kynou.com/GetTutorial.aspx?TutorialID=66

    I hope this will help you.

     

    Jeevesh Rastogi

Post a reply

Enter your message below

Sign in or Join us (it's free).