你是不是把类的名字改成helloworld了?如果是这样,就把Inherits="sample.WebForm1"改成:
Inherits="sample.helloworld"
Inherits="sample.helloworld"
解决方案 »
- 求教如何抓去数据,给点思路也行
- 请问自己写的 进销存 程序,怎么于市面上的收银机、POS连接
- 一个关于FileUpload控件上传图片的问题,求解答~
- Response.OutputStream的问题
- 请教大师们,.net事件里怎么调用页面的一个js方法?
- ActiveDirectoryMembershipProvider: COMException (0x8007203a): The server is not operational.
- output
- 为什么我不能结贴!!!!!那位大人告知,不胜感激
- 利用 ajax实现省份城市级联选择的问题。
- DropDownList问题!在线等待!!
- 如何快速学习微软的Duwamish7实例!
- 在asp.net 中当asp:button得到焦点时执行提交动作,这个怎么做?
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;namespace sample
{
public class WebForm1:System.Web.UI.Page
{
protected System.Web.UI.WebControls.Label Label1;
public WebForm1()
{
Page.Init+=new System.EventHandler(Page_Init);
} public void Page_Load(object sender,System.EventArgs e)
{
} private void Page_Init(object sender,EventArgs e)
{
InitializeComponent();
} private void InitializeComponent()
{
this.Load+=new System.EventHandler(this.Page_Load);
}
}
}
<html>
<body>
<form id="form1" method="post" runat="server">
<center>
<asp:label id="my" runat="server" font-size="30">hello world</asp:label>
</center>
</form>
</body>
</html>
你新建一个项目 起一样的名子 然后再把代码贴进去编译就行了
我把Codebehind="helloworld.aspx.cs" 一句改为src="helloworld.aspx.cs"就OK了!
大家给我讲讲理由吧!
我想知道在vs.net中如何编写代码,进行调试,谢谢!
Global.asax
Web.config
WebForm1.aspx