<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script language="vbscript" runat="server"> Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Dim NowTime As Date = Now() Dim DayOfWeek As Integer = Date.Today.DayOfWeek body1.InnerHtml = "现在的时间是" & NowTime & "今天是星期" & DayOfWeek
End Sub </script> <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server"> <title>使用HTML控件 </title> </head> <body id="body1" runat="server"> <form id="form1" runat="server"> <div>