So, I'm using the .NET 2.0 Profile object to manage custom user data on an internal site for my company. Everything seems to be working flawlessly until I realized I was going to have to add a redundant block of code to every aspx page in order to take advantage of the Profile.
At this point I decided to create a custom base page that could be inherited by all of my aspx pages. Seemed like the right idea, until I got the above error:
The name 'Profile' does not exist in the current context
I might be missing out on how/when the Profile object is getting built but I was wondering if anyone had any suggestions on how to access the Profile object from a base page/class.
View Complete Post