你有没有安装.net Framework?
你的IIS能不能解析aspx?

解决方案 »

  1.   

    找到aspnet_regiis.exe,运行aspnet_regiis.exe -i
      

  2.   

    就比如果这个:
    运行后好像
        Message.Text = "You last accessed this page at: " + DateTime.Now;
    这句就根本没有执行一样,看不到结果,但没有出错
    这些都是我在http://211.83.110.76/quickstart/aspplus/上边原样COPY下来的<html>
        <script language="C#" runat="server">
            void Page_Load(Object Src, EventArgs E) {
                Message.Text = "You last accessed this page at: " + DateTime.Now;
            }
        </script>
        <body>
           <h3><font face="Verdana">Manipulating Server Controls</font></h3>
           This sample demonstrates how to manipulate the &lt;asp:label&gt; server control within 
           the Page_Load event to output the current time.
           <p>
           <hr>
           <asp:label id="Message" font-size="24" font-bold="true" runat=server/>
        </body>
    </html>
      

  3.   

    重新注册一下IIS对ASP.NET的支持:
    C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_regiis.exe -r
      

  4.   

    to  qimini(循序渐进)
    我刚才也运行了,但还是没有用的
      

  5.   

    TO gOODiDEA(无语) :
    谢谢了,好像问题给解决了