我写的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>

解决方案 »

  1.   

    你指的在xp下,是在xp下创建虚拟目录,还是在xp下浏览?
      

  2.   

    我就把写好的.aspx放在iis默认wwwroot下,用IE浏览看不到结果啊
      

  3.   

    以下代码我执行通过(自己创建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>
      

  4.   

    我找到原因了,是拼写错误:(<title>The Punctual Web Server</tilte>修改为:<title>The Punctual Web Server</title>即可!由此我对title这个标签非常感兴趣,html的容错性是特别强,title成了例外?
    我们让错误的拼写记录,把正确的</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>
      

  5.   

    原来是</title>标记拼错了,害我重装了.net framework,搞了半天.谢谢各位!