< asp:button id="btnNext" runat="server" Text="Next" Onclick="btnNext_Click" >< /asp:button >"default.aspx.cs" has the following excerpt:
private void btnNext_Click(object sender, System.EventArgs e) { Response.Redirect("page2.aspx"); }I get the following compiler error:
myproj.WebForm1.btnNext_Click(object, System.EventArgs)' is inaccessible due to its protection levelIf I change "
private void
" to "public void
" it works. Why is private not accessible?