我不断收到运行时错误,但我的学校服务器不喜欢打印错误。我直接从书中复制了这个,我已经检查了很多次——它看起来对我来说是正确的。我在这里错过了什么吗?它只是告诉我runtime error
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>A Simple ASP.NET Example</title>
<style type="text/css">
td{background-color:black;color:yellow;}
strong{font-family:arial, sans-serif;}
p{font-size:14pt}
</style>
<script runat="server" langauge="JScript">
var dayAndTime : DateTime = DateTime.Now;
</script>
</head>
<body>
<strong>A Simple ASP.NET Example</strong>
<p>
<table border="6">
<tr>
<td>
<% Response.Write(dayAndTime.ToShortTimeString()); %>
</td>
<td>
<% Response.Write(dayAndTime.ToShortDateString()); %>
</td>
</tr>
</table>
</p>
</body>
</html>