More in this section

Forums / Developing with Sitefinity / User Profile control

User Profile control

2 posts, 0 answered
  1. Lucas
    Lucas avatar
    3 posts
    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?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    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">   
                    <asp:Label ID="lblFirstName" runat="server" Text="First name" TargetID="FirstName"></asp:Label>   
                    <asp:TextBox ID="FirstName" runat="server"></asp:TextBox>   
                    <asp:Label ID="lblLastName" runat="server" Text="Last name" TargetID="LastName"></asp:Label>   
                    <asp:TextBox ID="LastName" runat="server"></asp:TextBox>   
    <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