You can do that, it is quite easy. Actually in SetProfileProperties() the control iterates through the profile properties in the ProfileBase class so manipulation of the properties is not possible.
The way to achieve your purpose is not to use the ManageProfile control (maybe that was your purpose).
Here is a very simple example markup without the ManageProfie:
|<asp:TextBox ID="FirstName" runat="server" /> |
|<asp:TextBox ID="LastName" runat="server" /> |
And in the code behind instead of SetProfileProperties() you should do something like this:
|ProfileBase profile = ProfileBase.Create("SomeUserName"); |
|profile.SetPropertyValue("FirstName", this.FirstName.Text); |
|profile.SetPropertyValue("LastName", this.LastName.Text); |
| profile.Save(); |
Also to populate this text boxes with data from the profile you could do something like:
|this.FirstName.Text = profile.GetPropertyValue("FirstName"); |
Hope this information is helpful for you. We will be very happy to receive some feedback about the manageProfile control.
the Telerik team