I've having an issue with a piece of code behind logic where the variable I have is showing the error:
'variablename' is not declared. It may be inaccessible due to its protection level.
I believe the issue is because the area in my file that is referencing the code behind Sub is within a LoggedInTemplate area (as this is a protected area of the site).
Can anyone tell me how I'd go about coding the code behind element to access this LoggedInTemplate section?