More in this section

Forums / Developing with Sitefinity / Create Custom Sign Up Form and Login Form

Create Custom Sign Up Form and Login Form

2 posts, 0 answered
  1. CafeDelMar
    CafeDelMar avatar
    28 posts
    06 May 2007
    11 Apr 2009
    Link to this post
    Hi All,

    1. let say i want to create my own sign up form for public user and give some additional information such as company name and phone number, is it possible?

    2 How to get loged user attribute such as name, phone number ,and company name?

    3 Any step by step tutorial to create custom sign up form and login form that used radtextbox?

    4 How to redirect user to spesific page after they login ?


    Best Regards,
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    14 Apr 2009
    Link to this post
    Hi CafeDelMar,

    Thank you for using our services.

    For adding custom properties and manage them you can use ProfileManager class. The custom properties should be registered in web.config file as the example below demonstrates.

        <profile defaultProvider="Sitefinity">  
                    <clear /> 
                    <add name="Sitefinity" connectionStringName="DefaultConnection" applicationName="/" type="Telerik.DataAccess.AspnetProviders.TelerikProfileProvider, Telerik.DataAccess" /> 
                    <add name="FirstName" /> 
                    <add name="LastName" /> 
                    <add name="location" type="System.String"/> 

    For redirecting users there are several options, but everything depends on desired implementation. For instance you could use QueryString or some redirect page or after authentication success - Response.Redirect.

    Some basic examples.

    HttpContext context = HttpContext.Current;  
    string returnUrl = context.Request.QueryString["ReturnUrl"]; 

    string redirectUrl = this.Login1.DestinationPageUrl;  

    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