… is inaccessible due to its protection level

2 02 2010

While developping pages or application pages with code behind (not inline, but class based) keep in mind the protection level of the class.

By default a class’s protection level is “private”. Thus, the overridden methods will not be available.

Set the class as public and the problem will be solved.

Cheers.

Advertisements