App_Code folder question concerning profile object

R

Rusty Hill

I have a base class that contains code for the profile object that works
fine when the code is not in a file within the App_Code folder. Once I put
the code into the App_Code folder it will no longer compiling telling me:
"The name 'Profile' does not exist in the current context"

What am I missing here (besides a clue)?
 
R

Rusty Hill

It has those and I have tried fully qualifying the profile name space to no
avail.

The same code in another class that is not in the App_Code folder runs fine.
I can tell I am getting ready to learn something new here. Thank you.
 
R

Rusty Hill

HttpContext.Current.Profile.GetPropertyValue("xxx")

did the trick, thank you!!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top