Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我的页面上有一个标签。在 PageLoad() 中,它的 Text 参数设置为“这是我的第一个文本”。
例如,1 分钟后,我希望此标签将其文本参数更改为“这是我的第二个文本”(完全自动,无需用户与此站点进行任何交互)。
欢迎任何想法。也许是 AJAX?如何?谢谢!
您可以使用这样的计时器:
http://dotnetperls.com/timer
关于 AJAX 版本的类似问题:
ASP.NET/AJAX - 定时器不正确