简单问题-受保护级别限制(C#)
zsww 2003-09-30 11:37:35 编译出现以下错误:
不可访问“WebApplication3.WebForm1.Button1_Click(object, System.EventArgs)”,因为它受保护级别限制
<asp:Button id="Button1" runat="server" Text="提交" onClick="Button1_Click"></asp:Button>
private void Button1_Click(object sender, System.EventArgs e)
{
Label1.Text="您选择了" + TextBox1.Text + DropDownList1.SelectedItem;
}
什么原因?请帮忙解决!