Actually, the Reference[^] directive provides you with an way to link a web page/user control to the web page/user control that contains this directive. For example, if you want to call the class of the Page1.aspx from the Page2.aspx, you would normally use the Reference directive to get reference to the Page1.aspx (the CodeFile attribute is still being used in this case). To get reference to the web page/user control's classes from the classes put in the App_Code folder, putting the soure files in the App_Code, ommiting the CodeFile attribute (but the Inherits attribute is still) is an option. Another option is that you can define the base class for the web page with custom properties so that you can pass the current page to this base class before calling its members.