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>
别人写的原程序也是这个问题,~谢谢
<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>
别人写的原程序也是这个问题,~谢谢
解决方案 »
- 有关SQL语句
- vs2008 新建项里面有个“关于框”是啥子东东啊?
- 求算法(2^0,2^1,2^2,2^3,2^4...)随便给出一个值21就能知道其组合?
- asp.net2。0回传机制的一个BUG,挺隐蔽的。
- 一个VS Web Developer 2005 Express 中的问题
- 读取XM文件中的信息!SUPER EASY.
- 谁有关于asp.net树的例子?简单点的,多谢,我想学树!!!
- 求助 未能加载文件或程序集“vmime.NET”或它的某一个依赖项。未能验证强名称签名。此程序集可能已被篡改,或者已被延迟签名,但没有用正确的私钥进行完全签名。
- 我做的图片上传生成缩略图的控件
- 限制文本框输入 1-100个字符这个正则表达式怎么写?
- 关于TreeView当前选择结点的Parent结点
- javascript和c#操作同一个<select></select>时的问题,请帮忙
aspx跟cs的大小写有区别
<%@ Page Language="C#" Codebehind="helloworld.aspx.cs" AutoEventWireup="false" Inherits="Test.HelloWorld" %>
和
public class HelloWorld : System.Web.UI.Page
需要统一
或者直接用原代码:改Codebehind="helloworld.aspx.cs"为src="helloworld.aspx.cs"
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!!!";
}
}
}
已经统一了~还是不对呢?
SRC方法是DW,FP之类无编译功能的开发工具使用的,无需便编译
在vs.net下推荐用Codebehind
需要其他配置什么的吗?
<%@ Page %>
和 public class helloworld : System.Web.UI.Page
中的东西不建议修改
修改后可能出现各种古怪症状
中的Inherits应该是页面的名称就是helloworld你加的这个代码怎么不加在CodeBehind中呢就是helloworld.aspx.cs晕!
没vs.net可以用SRC
安装vs.net,需要安装IIS和frontPage服务器扩展
具体的参考vs.net安装帮助文件,非常详细
学习.net还是得下利其器
在其他环境下学习容易遇到不必要的问题,浪费了时间