helloworld.aspx<%@ Page Language="C#" Codebehind="helloworld.aspx.cs" AutoEventWireup="false" Inherits="Test.HelloWorld" %>
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>HelloWorld</TITLE>
</HEAD>
<BODY>
<FORM runat="server">
<asp:Label ID="Message"></asp:Label>
</FORM>
</BODY>
</HTML>helloworld.aspx.csusing System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;namespace Test
{
public class HelloWorld : System.Web.UI.Page
{
public Label Message;

private void Page_Load(object sender, System.EventArgs e)
{
Message.Text="Hello World!!!";
}
}
}
错误:Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Could not load type 'Test.HelloWorld'.Source Error: 
Line 1:  <%@ Page Language="C#" Codebehind="helloworld.aspx.cs" AutoEventWireup="false" Inherits="Test.HelloWorld" %>
Line 2:  <HTML>
Line 3:  <HEAD>
 
别人写的原程序也是这个问题,~谢谢

解决方案 »

  1.   

    楼主的HelloWorld在 
    aspx跟cs的大小写有区别
    <%@ Page Language="C#" Codebehind="helloworld.aspx.cs"  AutoEventWireup="false" Inherits="Test.HelloWorld" %>

    public class HelloWorld : System.Web.UI.Page
    需要统一
      

  2.   

    是大小问题 找不到Test.HelloWorld
      

  3.   

    你没有编译.cs文件,编译后在根目录的bin目录下有个dll文件
    或者直接用原代码:改Codebehind="helloworld.aspx.cs"为src="helloworld.aspx.cs"
      

  4.   

    helloworld.aspx<%@ Page Language="C#" Codebehind="helloworld.aspx.cs" AutoEventWireup="false" Inherits="Test.helloworld" %>
    helloworld.aspx.csnamespace Test
    {
    public class helloworld : System.Web.UI.Page
    {
    public Label Message;

    private void Page_Load(object sender, System.EventArgs e)
    {
    Message.Text="Hello World!!!";
    }
    }
    }
    已经统一了~还是不对呢?
      

  5.   

    src="helloworld.aspx.cs"的方法不推荐
    SRC方法是DW,FP之类无编译功能的开发工具使用的,无需便编译
    在vs.net下推荐用Codebehind
      

  6.   

    就是编译功能的问题~呵呵,我没装VS.NET,装了就可以解决吗?
    需要其他配置什么的吗?
      

  7.   

    建议重建文件
    <%@ Page  %>
    和 public class helloworld : System.Web.UI.Page
    中的东西不建议修改
    修改后可能出现各种古怪症状
      

  8.   

    <%@ Page Language="C#" Codebehind="helloworld.aspx.cs" AutoEventWireup="false" Inherits="Test.HelloWorld" %>
    中的Inherits应该是页面的名称就是helloworld你加的这个代码怎么不加在CodeBehind中呢就是helloworld.aspx.cs晕!
      

  9.   


    没vs.net可以用SRC
    安装vs.net,需要安装IIS和frontPage服务器扩展
    具体的参考vs.net安装帮助文件,非常详细
      

  10.   

    楼主还是装vs.net 2003吧
    学习.net还是得下利其器
    在其他环境下学习容易遇到不必要的问题,浪费了时间