我写的asp.net页面在xp的ie里面显示不出来,在2000就可以.我在页面上看了下源文件,是已经执行了的。在微软的支持里,提到说可能是先装了.net framework后装iis的原因,我用aspnet_regiis -i重新注册了了asp.net,但还是不行,想问问大家有没有什么解决方法?谢谢!
源代码:
<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</tilte>
</head>
<body bgcolor="green">
<h1>Welcome</h1>
In webserver load the is currently:
<asp:label id="time" runat="server" />
</body>
</html>
源代码:
<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</tilte>
</head>
<body bgcolor="green">
<h1>Welcome</h1>
In webserver load the is currently:
<asp:label id="time" runat="server" />
</body>
</html>
我拷贝你的代码确运行不通过,相当诡异
-------------------------------------------------
<script language="vb" runat="server">
Sub Page_Load()
time.text=Hour(Now) & ":" & Minute(Now) & ":" & Second(Now)
End Sub
</script>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
</head><body>
<h1>Welcome</h1>
In webserver load the is currently:<br>
<asp:label id="time" runat="server" />
</body>
</html>
我们让错误的拼写记录,把正确的</title>放在不同的地方,看看页面显示效果
1、<body bgcolor="green">
2、<h1>Welcome</h1>
3、In webserver load the is currently:我们可以发现<title></title>中的内容全部显示在IE的最上面的蓝色条上了
有点诡异~按道理来说,这个拼写错误应该忽略掉的有条件的网友用其它的浏览器测试一下,可以不包括ASP.NET代码:
<html>
<head>
<title>The Punctual Web Server</tilte>
</head><body bgcolor="green">
<h1>Welcome</h1>
In webserver load the is currently:
</body>
</html>