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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Automate background process using asp.net

Automate background process using asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
6 Posts 4 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.
  • S Offline
    S Offline
    Satish Developer
    wrote on last edited by
    #1

    Hi, i have a requirement to send sms to users for every 5 min getting new data from databse. sending sms in diff conditions. Need to some on specific timings like that etc. I want to do this using windows services. is it ok for me to start with this? Or any other better alternative is there to do this ?

    G. Satish

    N N 2 Replies Last reply
    0
    • S Satish Developer

      Hi, i have a requirement to send sms to users for every 5 min getting new data from databse. sending sms in diff conditions. Need to some on specific timings like that etc. I want to do this using windows services. is it ok for me to start with this? Or any other better alternative is there to do this ?

      G. Satish

      N Offline
      N Offline
      N a r e s h P a t e l
      wrote on last edited by
      #2

      HI, YOu can use BackgroundWorker if you are working in Windows Form Application.

      Naresh Patel

      N 1 Reply Last reply
      0
      • N N a r e s h P a t e l

        HI, YOu can use BackgroundWorker if you are working in Windows Form Application.

        Naresh Patel

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        N a r e s h P a t e l wrote:

        use BackgroundWorker if you are working in Windows Form Application.

        Background worker class is not limited to windows applications. It can be used in web applications too. It's juts a helper class for threading.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

        1 Reply Last reply
        0
        • S Satish Developer

          Hi, i have a requirement to send sms to users for every 5 min getting new data from databse. sending sms in diff conditions. Need to some on specific timings like that etc. I want to do this using windows services. is it ok for me to start with this? Or any other better alternative is there to do this ?

          G. Satish

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Yes windows services is a good way to go.

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          C 1 Reply Last reply
          0
          • N N a v a n e e t h

            Yes windows services is a good way to go.

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

            C Offline
            C Offline
            ChrisKo 0
            wrote on last edited by
            #5

            I disagree as he doesn't need a realtime process. I think too many people write WindowsServices when a service isn't specifically needed. I propose that you should write a simple console application and use the scheduling functionality of the OS to run that console application on the time frame you need.

            N 1 Reply Last reply
            0
            • C ChrisKo 0

              I disagree as he doesn't need a realtime process. I think too many people write WindowsServices when a service isn't specifically needed. I propose that you should write a simple console application and use the scheduling functionality of the OS to run that console application on the time frame you need.

              N Offline
              N Offline
              N a v a n e e t h
              wrote on last edited by
              #6

              ChrisKo wrote:

              should write a simple console application and use the scheduling functionality of the OS to run that console application on the time frame you need.

              A console application that exists automatically once the job done, right ? But OP says, he needs to run it every 5 minutes. So the console application approach will open a console window every 5minutes on the server, do you think it's an issue ? I was telling OP to use windows service because of this reason. A thread should work on the service which does the job and sleeps for next 5minutes. I still believe that will be a good idea. But you have a very valid point. Thanks for that. :)

              All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

              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