Hi,
How can I update Profile propertys in my Atlas application? Since I don't use update panels, I call web services to make server requests. I know that I can access the Session by declaring [WebMethod(EnableSession=true)], but can I also enable Profiles there?
Or are there alternatives to web services?
In javascript, you access profile properties using something like:
Sys.Profile.properties["list"] = [1, 2, 3];And then you want to call:
Sys.Profile.save();
To enable this feature, you do need to have a few things in config defined:
<configSections>
<section name="profileService" type="Microsoft.Web.Configuration.ProfileServiceSection" requirePermission="false" />
</sectionGroup>
</configSections>
<microsoft.web>
<profileService enabled="true" getProperties="*" setProperties="*" />
</microsoft.web>
This will enable atlas access to the Profile object, and let you get and set all properties, note you can lock down which propeties you want get/settable thru atlas using the get/setProperties in the profileService section.
Hope that helps,
-Hao
Thank's a lot. After your reply I searched the atlas docs again and now I have no clue, why I overlooked the profile topic before!
This feature is so cool! I love Atlas more everyday...
No comments:
Post a Comment