I have aspx pages I'm trying to protect from unauthorized users. I have a script which uses asp pages to manage my authorized users. It protects pages with [url removed, login to view] so an include is to be used such as
When I do this I get this:
Compiler Error Message: BC30689: Statement cannot appear outside of a method body.
Line 5: IF Session("MM_Username") "" then
The [url removed, login to view] is attached. The security process work fine on asp pages, I only have the problem with aspx pages.
How should I configure this to make it work? The aspx is written in C#. As you can see the asp is in VB.
Thanks for reading the project!