Trigger event
-
-
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
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.
-
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.
-
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
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
-
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
-
What exactly do you want to happen? A change in web pages? Uploading information to the website?