Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • ds 191 posts 223 karma points
    Jan 17, 2011 @ 07:53
    ds
    0

    Save Dropdown list multiple render control value

    Hi all,

    What is the correct syntax to save dropdown list multiple render control value using user control via code behind. Below code snippet does not save value into member details on admin backend.

    Roles.AddUserToRole(UserName.Text, "BasicUsers");
    var profile = System.Web.Profile.ProfileBase.Create(UserName.Text);
    profile
    ["sector"] = Sector.SelectedItem.Value;
    profile
    .Save();

     

Please Sign in or register to post replies

Write your reply to:

Draft