how can I asign a profile to a user i just created ?

Last post 05-08-2008 9:43 AM by Borris. 1 replies.

Sort Posts:

  • how can I asign a profile to a user i just created ?

    05-08-2008, 8:59 AM
    • Loading...
    • Borris
    • Joined on 11-22-2007, 5:37 AM
    • Cologne, Germany
    • Posts 10

    hello,

     i have an application, where i can log in as admin and create new users. I`m using the createuser-method for this. works fine so far.

    this new created user needs a profile (customer_id) which is a value i can pick from dropdownlist.

    how can i asign this new created user the profile?

     

     

    thx

    bo

  • Re: how can I asign a profile to a user i just created ?

    05-08-2008, 9:43 AM
    • Loading...
    • Borris
    • Joined on 11-22-2007, 5:37 AM
    • Cologne, Germany
    • Posts 10

    problem solved:

     

    i did like this:

     

    ProfileCommon profile = this.Profile;

    profile = this.Profile.GetProfile(TextBox1.Text);

    profile.Customer_Id = DropDownList1.SelectedValue;

    profile.Save();

Page 1 of 1 (2 items)