Hello,
I am tryng to use the built it Providers (Membership, Profile etc.). I have problems with SqlProfileProvider. I try to run exampe code from: http://msdn.microsoft.com/en-us/library/system.web.profile.sqlprofileprovider.setpropertyvalues(VS.80).aspx
1 SqlProfileProvider p =
2 (SqlProfileProvider)Profile.Providers["SqlProvider"];
3
4 SettingsPropertyValueCollection pvalues =
5 p.GetPropertyValues(Profile.Context, ProfileBase.Properties);
6
7 pvalues["ZipCode"].PropertyValue = "98052";
8 pvalues["CityAndState"].PropertyValue = "Redmond, WA";
9
10 p.SetPropertyValues(Profile.Context, pvalues);
but it neither explains where does the SettingsContext comes from, nor what 'Profile' object is .... (what type and where to get it from. It is surely not the ProfileManager, because it does not have a Context field).
Thanks in advance,
Jozef A. Habdank