S
shapper
Hello,
On the web site I am working I have multiple profile properties, being
each one a custom class:
<add allowAnonymous="false" name="Personal"
type="MyWebSite.Profile.Collaborator" serializeAs="Binary"/>
<add allowAnonymous="false" name="Contacts"
type="MyWebSite.Profile.Contact" serializeAs="Binary"/>
<add allowAnonymous="true" name="Settings"
type="MyWebSite.Profile.Settings" serializeAs="Binary"/>
I would like to know how should I create a new profile?
I am using the following:
Dim userProfile As ProfileCommon = Profile.GetProfile(username)
With userProfile.Contacts
.City = tbCity.Text
...
End With
With userProfile.Settings
.Newsletter = cbNewsletter.Checked
...
End With
....
userProfile.Save()
I was also checking ProfileBase.Create ...
Anyway, could someone advice me on this?
Thanks,
Miguel
On the web site I am working I have multiple profile properties, being
each one a custom class:
<add allowAnonymous="false" name="Personal"
type="MyWebSite.Profile.Collaborator" serializeAs="Binary"/>
<add allowAnonymous="false" name="Contacts"
type="MyWebSite.Profile.Contact" serializeAs="Binary"/>
<add allowAnonymous="true" name="Settings"
type="MyWebSite.Profile.Settings" serializeAs="Binary"/>
I would like to know how should I create a new profile?
I am using the following:
Dim userProfile As ProfileCommon = Profile.GetProfile(username)
With userProfile.Contacts
.City = tbCity.Text
...
End With
With userProfile.Settings
.Newsletter = cbNewsletter.Checked
...
End With
....
userProfile.Save()
I was also checking ProfileBase.Create ...
Anyway, could someone advice me on this?
Thanks,
Miguel