开发者

How to call a function in ASP.NET automatically after a certain time has elapsed?

开发者 https://www.devze.com 2023-02-06 03:41 出处:网络
Let\'s say I have a Label on my page. In PageLoad() it\'s Text parameter is set to \"This is my first text\".

Let's say I have a Label on my page. In PageLoad() it's Text parameter is set to "This is my first text".

After, for example, 1 minute I want this Label to change it's text parameter to "This is my second text" (completely automatical开发者_StackOverflowly, without any interaction of a user with this site).

Any ideas are welcome. AJAX perhaps? How? Thank you!


You could use a timer like this:

http://dotnetperls.com/timer

Similar question on an AJAX version:

ASP.NET/AJAX - Timer not working correct

0

精彩评论

暂无评论...
验证码 换一张
取 消