More in this section

Forums / Developing with Sitefinity / Cunstomize Add User page

Cunstomize Add User page

4 posts, 0 answered
  1. Eric
    Eric avatar
    9 posts
    Registered:
    31 Jul 2008
    14 Jan 2009
    Link to this post
    I am trying to  customize the manageuser  Insert and Edit.

    Where the screen currently displays roles to select I want to add another drop down list that will be populated with customer name as the text and customerid as the value.

    I can add the control to the form, but I  cannot seem to load the drop down nor can I save the data.

    thanks,
    Eric
  2. Eric
    Eric avatar
    9 posts
    Registered:
    31 Jul 2008
    14 Jan 2009
    Link to this post
    By the way this is in version 3.5 
  3. Eric
    Eric avatar
    9 posts
    Registered:
    31 Jul 2008
    14 Jan 2009
    Link to this post

    Ok I have created the dropdownlistand have filled it with data successfully. The problem I see now is I do not see the code that populates the userfields such as Username, email, etc. Nor do I see the save logic.  Is that still exposed in version 3.5 or is itin a different location?  I am lookingfor the code that loads the data on the edit screen and saves the date on theedit and the insert?

     

    Thanks

  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    19 Jan 2009
    Link to this post
    Hello Eric,

    I am still not sure what you exactly do. Please see how I add a custom field for the users:

    Here is an example of adding such field:

    web.config:
    <profile defaultProvider="Sitefinity">  
          <providers>  
            <clear />  
            <add name="Sitefinity" connectionStringName="DefaultConnection" applicationName="/" type="Telerik.DataAccess.AspnetProviders.TelerikProfileProvider, Telerik.DataAccess" />  
          </providers>  
          <properties>  
            <add name="FirstName" />  
            <add name="LastName" />  
            <!--ADD NEW NAME HERE-->  
            <add name="ExampleField" type="System.Boolean"/>  
     

    [YourProject]\Sitefinity\Admin\CmsAdmin\Users.aspx:
            <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources:UserDetails %>" /></h3>  
        <fieldset class="userinfo set">  
            <cc1:ManageProfile ID="manageProfile" runat="server" Mode="Insert">  
                <InsertTemplate>  
                    <ol class="setIn">  
                        <li>  
                            <cc2:FieldLabel ID="lblFirstName" runat="server" Text="First name" TargetID="FirstName">  
                            </cc2:FieldLabel>  
                            <asp:TextBox ID="FirstName" runat="server"></asp:TextBox></li>  
                        <li>  
                            <cc2:FieldLabel ID="lblLastName" runat="server" Text="Last name" TargetID="LastName">  
                            </cc2:FieldLabel>  
                            <asp:TextBox ID="LastName" runat="server"></asp:TextBox></li>  
                            <li><cc2:FieldLabel ID="lblExampleField" runat="server" Text="ExampleField" TargetID="ExampleField">  
                        </cc2:FieldLabel>  
                        <asp:TextBox ID="ExampleField" runat="server"></asp:TextBox></li>   
                    </ol>  
                </InsertTemplate>  
            </cc1:ManageProfile>  
     

    Is this what you are looking for? Let us know if we misunderstand something.

    Regards,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered