L
Lancer03
Unregistered / Unconfirmed
GUEST, unregistred user!
我写了再简单不过的一段代码,如下所示:
<%@ Page Language="c#" %>
<script language="c#" runat="server">
void Page_Load()
{
time.Text = DateTime.Now.Hour.ToString();
}
</script>
<html>
<body>
<h1>welcome</h1>
time now is :
<asp:label id="time" runat="server" />
</body>
</html>
但在IE中只显示了
welcome
time now is:
而且查看源文件时上面代码被原封不动地显示出来了。这究竟是什么原因?
<%@ Page Language="c#" %>
<script language="c#" runat="server">
void Page_Load()
{
time.Text = DateTime.Now.Hour.ToString();
}
</script>
<html>
<body>
<h1>welcome</h1>
time now is :
<asp:label id="time" runat="server" />
</body>
</html>
但在IE中只显示了
welcome
time now is:
而且查看源文件时上面代码被原封不动地显示出来了。这究竟是什么原因?