Posted on: 8/8/2013 8:48:16 PM | Views : 225

I have a 4.5 website, not project, were I'm saving data to the membership profile. I had problems getting to works at the beginning, but once I was able to install Universal Providers via NuGet I got it to work. Kind of.
I can read the profile info from any page codebehind in different ways:
Profile.myProfileValue.ToString(); ProfileCommon PR = HttpContext.Current.Profile as ProfileCommon; PR.GetProfile(“myUser”).myProfileValue.ToString(); HttpContext.Current.Profile.GetPropertyValue("myProfileValue").ToString(); However, I can’t get any of those methods to work in my namespace inside an .cs in App_Code.

I tried adding
using System.Web.Security; using System.Web.Profile; But so far no luck.
Any suggestions?
Thanks,
...

Go to the complete details ...