和是否xp无关,是不是漏了runat="server"如果没有,贴出你的简要代码

解决方案 »

  1.   

    代码如下:
    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="lx1.WebForm1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <title>WebForm1</title>
    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.0">
    <meta name="CODE_LANGUAGE" content="Visual Basic 7.0">
    <meta name="vs_defaultClientScript" content="JavaScript">
    <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
    </HEAD>
    <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
    <FONT face="宋体">
    <asp:Button id="Button1" style="Z-INDEX: 101; LEFT: 257px; POSITION: absolute; TOP: 73px" runat="server" Text="Button" Width="152px" Height="64px"></asp:Button>
    <asp:TextBox id="TextBox1" style="Z-INDEX: 102; LEFT: 84px; POSITION: absolute; TOP: 43px" runat="server" Width="110px" Height="50px"></asp:TextBox>
    <DIV style="DISPLAY: inline; Z-INDEX: 103; LEFT: 285px; WIDTH: 129px; POSITION: absolute; TOP: 19px; HEIGHT: 34px" ms_positioning="FlowLayout">试验</DIV>
    <asp:Label id="Label1" style="Z-INDEX: 104; LEFT: 235px; POSITION: absolute; TOP: 163px" runat="server" Height="62px" Width="146px">Label若投入</asp:Label></FONT>
    </form>
    </body>
    </HTML>
      

  2.   

    runat="server"
    visble=true
    都没问题啊
      

  3.   

    去掉
    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="lx1.WebForm1"%>
    我这没问题,是不是Codebehind里面内容问题?
      

  4.   

    是不是你的IIS没有正确的注册,试一下aspnet_regiis -i
      

  5.   

    aspnet_regiis在哪我怎么找不到阿
      

  6.   

    看上去,你.NET Framework没装好呀,再装一遍吧。
      

  7.   

    C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705
    or
    C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322