<%@ Page %>
<script language="C#" runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Label1.Text=DateTime.Now.ToString("hh:mm:ss");
System.Threading.Thread.Sleep(5000);
Label2.Text=DateTime.Now.ToString("hh:mm:ss");
}
</script>
<html>
<body>
<form id="form1" method="post" runat="server">
<asp:Label ID="Label1" Runat="server" /><br>
<asp:Label ID="Label2" Runat="server" />
</form>
</body>
</html>
|