I set the InternalsVisibleTo attribute for the friend assembly. In a controller, I can access the internal class, but if I try to do the same in the aspx/ascx file - "class is inaccessible due to its protection level" .
Any way I could fix this ?
EDIT
I should have made things more clear and specify that the attribute was for resource files that generated the designer class Internal. I just found that i can change the Access Modifier when editing the resx file.
But thanks Darin Dimitrov for the explanation.