Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Constant timer in asp.net

Constant timer in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadminquestion
14 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Brij

    Could not understand what actually you require. But as I understood, whenever your application starts or accessed or whatever event as per your requirement, make some entry in database then you can create a console application which checkes the DB and read the entries and accordingly can send the mail. And then you need to schedule this exe file using windows schedular on daily. So you exe will run daily and will be checking the db and accordingly will send the mail..

    Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0

    L Offline
    L Offline
    lvq684
    wrote on last edited by
    #5

    Thanks alot for your answers! I forgot to say, that my application will run on my webhost, and therefore not on my own asp.net server. So I guess the windows scheduler solution cant solve my problem :(

    B 1 Reply Last reply
    0
    • L lvq684

      Thanks alot for your answers! I forgot to say, that my application will run on my webhost, and therefore not on my own asp.net server. So I guess the windows scheduler solution cant solve my problem :(

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #6

      lvq684 wrote:

      So I guess the windows scheduler solution cant solve my problem

      Why? You just make some entry in database according to your requirement to send the mail. Create new console application which reads the databse and send the mail accordingly. Now schedule it with windows schedular on daily basis. you exe will run and checks the DB and send the mail accordingly.. I have implemented this kind of functionality.. Are you looking for something else?

      Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0

      L 1 Reply Last reply
      0
      • B Brij

        lvq684 wrote:

        So I guess the windows scheduler solution cant solve my problem

        Why? You just make some entry in database according to your requirement to send the mail. Create new console application which reads the databse and send the mail accordingly. Now schedule it with windows schedular on daily basis. you exe will run and checks the DB and send the mail accordingly.. I have implemented this kind of functionality.. Are you looking for something else?

        Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0

        L Offline
        L Offline
        lvq684
        wrote on last edited by
        #7

        Where would that console application be running from? I most likely cannot execute it on my webhost. If I execute it locally, it would require that my "home computer" would be turned on, and thats not the solution I am looking for. So every functionality should be going on in an application on my webhost. Thanks :)

        S 1 Reply Last reply
        0
        • L lvq684

          Where would that console application be running from? I most likely cannot execute it on my webhost. If I execute it locally, it would require that my "home computer" would be turned on, and thats not the solution I am looking for. So every functionality should be going on in an application on my webhost. Thanks :)

          S Offline
          S Offline
          Sandesh M Patil
          wrote on last edited by
          #8

          Write a Windows Service not a console application... Install it on your server Hope this may help u..... :)

          L 1 Reply Last reply
          0
          • S Sandesh M Patil

            Write a Windows Service not a console application... Install it on your server Hope this may help u..... :)

            L Offline
            L Offline
            lvq684
            wrote on last edited by
            #9

            I cannot run this on my webhost..

            B S 2 Replies Last reply
            0
            • L lvq684

              I cannot run this on my webhost..

              B Offline
              B Offline
              Brij
              wrote on last edited by
              #10

              You need to run it on your webserver/database server or on some machine that is tha is always running and have access to database to read the information.

              Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0

              1 Reply Last reply
              0
              • L lvq684

                I cannot run this on my webhost..

                S Offline
                S Offline
                Sandesh M Patil
                wrote on last edited by
                #11

                what is ur webhost is it a server. Then i m sure u can create a Windows service.........:suss:

                A 1 Reply Last reply
                0
                • S Sandesh M Patil

                  When the page loads or any event occured of your application then take current date and time store it in your database. Then after 24 hrs you can send email. Hope this may help u........... :)

                  T Offline
                  T Offline
                  The solution
                  wrote on last edited by
                  #12

                  if your site is hosted on server then you can create window service and If your database and site hosted on same server and if you have access of SA of site then you can run sql job as well for this. Hope this will help you. :)

                  1 Reply Last reply
                  0
                  • S Sandesh M Patil

                    what is ur webhost is it a server. Then i m sure u can create a Windows service.........:suss:

                    A Offline
                    A Offline
                    Ashfield
                    wrote on last edited by
                    #13

                    What he means is, its a paid for web host, not his own server, and I wouldn't expect them to allow windows services to be installed by anyone, hence the problem.

                    Bob Ashfield Consultants Ltd

                    S 1 Reply Last reply
                    0
                    • A Ashfield

                      What he means is, its a paid for web host, not his own server, and I wouldn't expect them to allow windows services to be installed by anyone, hence the problem.

                      Bob Ashfield Consultants Ltd

                      S Offline
                      S Offline
                      Sandesh M Patil
                      wrote on last edited by
                      #14

                      Ok got it...So he use a shared web server shared by multiple clients.... Ok sorry dear u have to use timer control then....... ;)

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups