Adding profile properties at runtime

Last post 05-09-2008 7:35 PM by uick383937. 0 replies.

Sort Posts:

  • Adding profile properties at runtime

    05-09-2008, 7:35 PM
    • Loading...
    • uick383937
    • Joined on 08-23-2006, 8:51 PM
    • Posts 52

    Is there a way to add new profile properties to web.config at runtime?  For example, if my web.config file has these elements under the <profile> node :

    <properties>

    <add name="Nickname" type="string" allowAnonymous="false" serializeAs="String"/>
    <
    add name="Homepage" type="string" allowAnonymous="false" serializeAs="String"/>

    </properties>

    At runtime I would like to add:

    <add name="Hobby" type="string" allowAnonymous="false" serializeAs="String"/>

    I can't find a Profile method to do this.

Page 1 of 1 (1 items)