开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜