1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / User Profile control

User Profile control

2 posts, 0 answered
  1. Lucas
    Lucas avatar
    3 posts
    Registered:
    27 Mar 2009
    30 Apr 2009
    Link to this post
    I added a bunch of fields to the User Profile and added a control to the page,and the layout puts them in a horizontal, sequential output. Is there a quick and easy way to edit this so they're vertical and more orderly?

    Thanks
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    30 Apr 2009
    Link to this post
    Hello Lucas,

    I think that you meant ManageUsers control( if not correct me). The control can be styled through ManageProfile control in a user control and define the required layout in the provided templates (InsertTemplate, ViewTemplate, EditTemplate).

    Here is a sample:

    <%@ Control Language="C#" AutoEventWireup="true" CodeFile="MyProfile.ascx.cs" Inherits="UserControls_Custom_MyProfile" %>  
    <%@ Register Assembly="Telerik.Security" Namespace="Telerik.Security.WebControls" TagPrefix="cc1" %>    
       
    <cc1:ManageProfile ID="manageProfile" runat="server" Mode="edit" UsernameIfNoNames="false">   
        <EditTemplate>   
            <ol>   
                <li>   
                    <asp:Label ID="lblFirstName" runat="server" Text="First name" TargetID="FirstName"></asp:Label>   
                    <asp:TextBox ID="FirstName" runat="server"></asp:TextBox>   
                </li>   
                <li>   
                    <asp:Label ID="lblLastName" runat="server" Text="Last name" TargetID="LastName"></asp:Label>   
                    <asp:TextBox ID="LastName" runat="server"></asp:TextBox>   
                </li>   
            </ol>   
        </EditTemplate>   
    </cc1:ManageProfile>   
       
    <asp:LinkButton ID="cmdSaveUser" Text="Save" CommandName="Save" OnCommand="cmdSaveUser_Command" runat="server"></asp:LinkButton>   
     

    After creating this user control you can register in tn your web.config and use it instead of the default one.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
2 posts, 0 answered