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. Trigger event

Trigger event

Scheduled Pinned Locked Moved ASP.NET
databasetutorialquestion
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.
  • Y Offline
    Y Offline
    yibiBrown
    wrote on last edited by
    #1

    Hi, I have a web application and I would like to trigger a function without any button being pressed. For example, I would like to run a function at the end of the day (ie, when the computer clock is 7pm). Is this possible? Thanx in advanced Yibi

    C K L 3 Replies Last reply
    0
    • Y yibiBrown

      Hi, I have a web application and I would like to trigger a function without any button being pressed. For example, I would like to run a function at the end of the day (ie, when the computer clock is 7pm). Is this possible? Thanx in advanced Yibi

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

      Sure, at 7:00pm you visit http://yoursite.domain.com/triggerevent.aspx with your web broswer. It's obvious that you don't understand that web applications are stateless. You cannot have a web application trigger itself in that manner.

      Y 1 Reply Last reply
      0
      • C ChrisKo 0

        Sure, at 7:00pm you visit http://yoursite.domain.com/triggerevent.aspx with your web broswer. It's obvious that you don't understand that web applications are stateless. You cannot have a web application trigger itself in that manner.

        Y Offline
        Y Offline
        yibiBrown
        wrote on last edited by
        #3

        So there is no way of doing this automatically? Yibi

        1 Reply Last reply
        0
        • Y yibiBrown

          Hi, I have a web application and I would like to trigger a function without any button being pressed. For example, I would like to run a function at the end of the day (ie, when the computer clock is 7pm). Is this possible? Thanx in advanced Yibi

          K Offline
          K Offline
          ktomecek
          wrote on last edited by
          #4

          Perhaps the timer control can help you. You could use the timer to trigger the event and then check the current time and once you get to the time you want, you could take some action. Please see the link below. Hope this helps you. Regards, Karl http://asp.net/ajax/documentation/live/tutorials/IntroToTimerControl.aspx

          modified on Friday, April 18, 2008 12:49 PM

          1 Reply Last reply
          0
          • Y yibiBrown

            Hi, I have a web application and I would like to trigger a function without any button being pressed. For example, I would like to run a function at the end of the day (ie, when the computer clock is 7pm). Is this possible? Thanx in advanced Yibi

            L Offline
            L Offline
            leckey 0
            wrote on last edited by
            #5

            What exactly do you want to happen? A change in web pages? Uploading information to the website?

            http://craptasticnation.blogspot.com/[^]

            Y 1 Reply Last reply
            0
            • L leckey 0

              What exactly do you want to happen? A change in web pages? Uploading information to the website?

              http://craptasticnation.blogspot.com/[^]

              Y Offline
              Y Offline
              yibiBrown
              wrote on last edited by
              #6

              Thanx, That worked perfect for me. :) Yibi

              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