点击aspx上的button,无法运行定义在aspx的相关事件中的程序
hiyi 2003-03-06 10:23:32 WebForm2.aspx中
<%@ Page language="c#" Codebehind="WebForm2.aspx.cs" AutoEventWireup="false" Inherits="WebVisitDatabase.WebForm2" %>
增加一个button
<asp:button id="Button1" style="Z-INDEX: 107; LEFT: 299px; POSITION: absolute; TOP: 233px" runat="server" text="确认">
aspx.cs中
一个Lable
</asp:label><asp:label id="Message" style="Z-INDEX: 106; LEFT: 141px; POSITION: absolute; TOP: 236px" runat="server" Width="120px">
WebForm2.aspx.cs中
private void Button1_Click(object sender, System.EventArgs e)
{
message.text=3;
}
点击aspx上的button,为何label没反应?