iis didn't run function
I have a simple question: My iis didn't run the function. here is my test code.
script language="c#" runat="server">
void Page_Load()
{
time.Text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
}
</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>
What I am trying to do is get the current date and time from server.
Here is the output:
Welcome
In WebServerLand the time is currently:
There is no date and time returned.
Any input is highly appriciate!
|