[此贴子已经被作者于2005-1-11 9:10:28编辑过]
<script language="vb" runat="server"> Sub Page_Load() time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now) End Sub </script>
<html> <head><title>The Punctual Web Server</title></head> <body> <h1>Welcome</h1> In WebServerLand the time is currently: <asp:label id="time" runat="server" /> </body> </html> 结果是: In WebServerLand the time is currently: 后面没有时间了
<script language="vb" runat="server"> sub page_load(sender as object,e as eventargs) time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now) End Sub </script>
<html> <head><title>The Punctual Web Server</title></head> <body> <form runat=server><h1>Welcome</h1> In WebServerLand the time is currently:<asp:label id="time" runat="server" /></form> </body> </html> [/CODE] 你看看有没有问题啊~