I've created new Web Site project. Some helper classes are in App_Code folder. Pages are in the root. User controls are in the folder UserControls in the root. All page class are defined in MyProjectName.Pages namespace. All user control class are defined in MyProjectName.UserControls namespace.
I can get access from my pages to controls, but I cann't get access from my controls to page classes! I use Page property and try to cast it to MyPage class (include directive using MyProjectName.Pages at the begining). Here compiler says, the is no type or namespace Pages in MyProjectName namespace. Also, I don't see these namespaces (MyProjectName.Pages and MyProjectName.UserControls) in Object Viewer. Should I replace somewhere my controls and pages to get ability to use page classes from controls?