private code-behind methods ignored by the compiler - ASP.NET
<p>When declaring a code-behind method as private (such as an event handler), the compiler ignores it and outputs: </p>

<p>"Compiler Error Message: CS1061: 'ASP.default_aspx' does not contain a definition for 'OnLoginUser' and no extension method 'OnLoginUser' accepting a first argument of type 'ASP.default_aspx' could be found (are you missing a using directive or an assembly reference?)"</p>

<p>In practice, OnLoginUsed does exist, and when the identifier is changed to "public\protected" everything works just fine.</p>

<p>The question is why it is impossible to declare such method as private? after all, it's being called internally by other members of the class.</p>

<p>10x!</p>
