More in this section
Forums / Developing with Sitefinity / Howto make CustomControls

Howto make CustomControls

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
4 posts, 0 answered
  1. Charles Kniss
    Charles Kniss avatar
    1 posts
    Registered:
    24 Feb 2010
    13 Apr 2010
    Link to this post
    Hi,

    I've made some UserControls and they work very well, but I get lost when I try to make a DLL, can someone send me an example (dll source)?

    And how can I say to Sitefinity to add the control in a certain Group? Is it some annotation? [Sec("XX")] ?
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    13 Apr 2010
    Link to this post
    Hi Charles Kniss,

    You could take a look at

    You could specify the toolbox category in the web.config declaration of your control

    <add name="CONTROL NAME" section="NAME OF THE SECTION" type="NAMESPACE, NAME OF THE CLASS LIBRARY"/>

    You could create Toolbox item for your class and set the section programmatically

    using System;
    using System.Collections.Generic;
    using System.Text;
    using Telerik.Web;
     
     
    namespace Telerik.Samples.WebControls
    {
     
        public class MyControlToolboxItem : ToolboxItem
        {
     
            public MyControlToolboxItem()
                : base(typeof(MyControl))
            {
                base.DisplayName = Messages.MyControl_DisplayName;
                base.Description = Messages.MyControl_Description;
                base.Section = "TYPE DESIRED SECTION HERE";
            }
        }
    }


    Regards,
    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. Bruno Michels
    Bruno Michels avatar
    1 posts
    Registered:
    14 Apr 2010
    14 Apr 2010
    Link to this post
    Is it possible to convert an UserControl (ascx) to a dll? how?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    14 Apr 2010
    Link to this post
    Hi Bruno Michels,

    You have to get the logic from the user control and migrate it to the class library. I do not see how this could be related to Sitefinity itself.

    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