How to make partial user management classes aware of the controls declared in the base class?

Is there anything special to do so that ASP.NET partial classes know about the controls declared in our base user control classes? Partial classes continue to generate declarations for controls in the base class, which means that the controls in the base class are hidden and are null.

+5
source share
1 answer

The CodeFileBaseClass attribute can be applied to @Page or @Control so that the ASP.NET runtime is aware of any controls declared in your base class.

MSDN describes this as follows:

Specifies the base class type name for the page and the associated code class.

, , CodeFile . , , ( , ) -. - ASP.NET, , - ( ), . CodeFileBaseClass , ( Inherits CodeFile ) , .

+6

All Articles