大家请帮我解决一下,浏览时出不了服务器时间,链接也不能使用
代码如下:<html>
<script language=vbscript runat = server>
    Sub page_load(sender as object,e as eventargs)
one.href="http://www.163.com"
sp1.text= now
end sub
</script><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
现在时间:<asp:label id=sp1 runat=server></asp:label>
 <br>
 请按<A id=one runat =server>http://www.163.com</A>链接到ch2-2网页</body>
</html>

解决方案 »

  1.   

    服务器控件必须位于<Form runat=server></Form>内<Form runat=server>
    <body>
    现在时间:<asp:label id=sp1 runat=server></asp:label>
     <br>
     请按<A id=one runat =server>http://www.163.com</A>链接到ch2-2网页</body>
    </Form>
      

  2.   

    <script language=vbscript runat = server>?
    应该是<script language="VB" runat=server>吧
      

  3.   

    服务器控件必须位于<Form runat=server></Form>;
    <script language="VB" runat=server>