I've placed a static class TestClass in the App_Code folder. The class contains a static method TestMethod. From Default.aspx.cs via Button_Click method, I'm trying to invoke TestMethod. - test = TestClass.TestMethod(). This gives error: 'TestClass' is inaccessible due to its protection level.
It feels like the static class and the _Default class should be placed into a common namespace, but this would "exclude" the Default.aspx controls references.
What am I doing wrong?