While playing with the profiles, I have run into a small error, and maybe it's just a little confusion about the key/values for the profile properties, but I get this error: {"The settings property 'zipcode' was not found."}. Also, the fields I do update are not saved to the database, even though I'm calling save.
If I uncomment the add statements, asp.net complains that they already exist. So I uncomment them. Then when I need to update the property I do this:
Profile.
NPSProfile p = Profile.NPSProfile.GetUser(CreateUserWizard1.UserName);
if (p != null)
{
p.Phone =
"707-555-1212";
}
When I inspect p, I find that Zip doesn't exist. I have the properties in the dashboard for the name to be ZipCode and the underlying file name to be zipcode (pretty much matching the class definition).
ProfileBase not working as expected.
While playing with the profiles, I have run into a small error, and maybe it's just a little confusion about the key/values for the profile properties, but I get this error: {"The settings property 'zipcode' was not found."}. Also, the fields I do update are not saved to the database, even though I'm calling save.
I have a class derived from profile provider
That class has the corresponding entry in the web.config
If I uncomment the add statements, asp.net complains that they already exist. So I uncomment them. Then when I need to update the property I do this:
When I inspect p, I find that Zip doesn't exist. I have the properties in the dashboard for the name to be ZipCode and the underlying file name to be zipcode (pretty much matching the class definition).
is working on a reply...