JScript code
<script> function Clear() { setTimeout(function(){document.getElementById('Label1').innerText='';}, 10000); return 0; } </script>


C# code
private void Page_Load(object sender, System.EventArgs e) { this.RegisterStartupScript("clear","<script>Clear();</script>"); }
posted on 2009-04-20 14:17  情感星  阅读(349)  评论(0)    收藏  举报