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

Forums / Set-up & Installation / SiteFinity Toolbox

SiteFinity Toolbox

4 posts, 0 answered
  1. John White
    John White avatar
    20 posts
    Registered:
    29 May 2010
    19 Jun 2010
    Link to this post
    I've been reading the forums extensively to learn how to do a few tasks that are not an "out of the box" capability for SiteFinity, such as:

    1.  Extend the User Profile area to collect information from the registered users and to programmatically update others.
    2.  Implement an affiliate model for referrals.

    I've seen lots of posts about creating user controls but also a lof referencing using the SiteFinity toolbar and controls on that.  I am assuming that means there are controls that should be installed in VS2008?  If so, they aren't.
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    20 Jun 2010
    Link to this post
    Hi John White,

    Sitefinity controls are not automatically added to the VS toolbox. Some of the controls could be added manually, but generally this us useful when you have a control designer just like as the designer of RadControls for ASP.NET AJAX. Sitefinity controls do not have control designer.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. John White
    John White avatar
    20 posts
    Registered:
    29 May 2010
    22 Jun 2010
    Link to this post
    Then how do you override a control like "ManageProfile" if it is not exposed but built into the assembly?  I apologize if this seems a little basic.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    22 Jun 2010
    Link to this post
    Hello John White,

    You override the control in the same way as you will do for an ASP.NET control that comes with ASP.NET Microsoft Framework. For instance Literal control is located under System.Web.dll

    sample code

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using Telerik.Security.WebControls;
    using System.Web.UI.WebControls;
     
    /// <summary>
    /// Summary description for ManageProfileCustonm
    /// </summary>
    ///
     
    namespace Telerik.Samples
    {
        public class ManageProfileCustom : ManageProfile
        {
            public ManageProfileCustom()
            {
            }
     
            
     
            protected override void CreateChildControls()
            {
                base.CreateChildControls();
     
                BasicContainer currentContainer = GetCurrentContainer();
                if (currentContainer is Telerik.Security.WebControls.ManageProfile.EditContainer)
                {
                     
                }
                if (currentContainer is Telerik.Security.WebControls.ManageProfile.InsertContainer)
                {
                  IButtonControl v = (IButtonControl)currentContainer.FindControl("submitButton");
                  Telerik.Security.WebControls.ManageProfile.InsertContainer c = currentContainer as Telerik.Security.WebControls.ManageProfile.InsertContainer;
                }
            }
        }
    }


    Sincerely yours,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
4 posts, 0 answered