create schedule program in c#

Last post 08-26-2009 11:35 AM by mendhak. 5 replies.

Sort Posts:

  • create schedule program in c#

    08-25-2009, 6:57 AM
    • Member
      17 point Member
    • yogarajan
    • Member since 04-26-2007, 6:26 AM
    • chennai
    • Posts 57

    Hi friends

    i am developing web based application

    i want create schedule program in c# . it is working each and every month 1st date.

    if !st day that machine not working (sunday holiday so machine off) means next day that(web application) should be stop

    is it possible

    pls help me

  • Re: create schedule program in c#

    08-25-2009, 8:43 AM
    • All-Star
      17,242 point All-Star
    • mendhak
    • Member since 05-28-2004, 6:58 PM
    • 51.507991,-0.127784
    • Posts 2,732

    You could configure a lot of that in a scheduled task.  You can configure it to run every day and perform the 'date check' in your code.

    Have your app store a lastRunTime in a database or file.  Get the app to look at the current date.  If lastRunTime is more than a day and it's the first of the month (or first weekday), then run your code.  Else, just exit gracefully.

    Not interested in your tweets since 1981.
  • Re: create schedule program in c#

    08-26-2009, 12:25 AM
    • Member
      17 point Member
    • yogarajan
    • Member since 04-26-2007, 6:26 AM
    • chennai
    • Posts 57

    hi friend

    Thanks for your reply

    if user change machine date means how can i check?

    i am develpoing web application(elearning portal)

    i am convert to web setup

    i am send to the client

    they are installed and enjoy course

    it is course one month valid period

    after that they are renewal the course

    they are full rights for the database

    so how can i check?

    it is my requirement




  • Re: create schedule program in c#

    08-26-2009, 12:41 AM
    • Member
      742 point Member
    • Anandkbs
    • Member since 11-13-2008, 2:36 PM
    • Bangalore
    • Posts 150
    If you mark as "Answer" then others can use this answer as a reference.

    Any suggestions,
  • Re: create schedule program in c#

    08-26-2009, 12:56 AM
    • Participant
      1,039 point Participant
    • akmsaeea
    • Member since 08-07-2009, 11:40 AM
    • Bangalore
    • Posts 195
  • Re: create schedule program in c#

    08-26-2009, 11:35 AM
    • All-Star
      17,242 point All-Star
    • mendhak
    • Member since 05-28-2004, 6:58 PM
    • 51.507991,-0.127784
    • Posts 2,732

    So you're giving them a lot of control. I don't know what else you're doing for 'security checks' but if the time's all that matters, then have your date-times stored on your own server and have your app call a web service to check the time. Or calculate the number of times the app can run and give it a limit of the number of times it can be opened. 

    Not interested in your tweets since 1981.
Page 1 of 1 (6 items)