Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rob Walker 13 posts 34 karma points
    Nov 18, 2011 @ 11:17
    Rob Walker
    0

    Custom Control (Macros)

    Morning all,

    I’m very new to Umbraco (as in less than a week!) and am struggling to get a Macro working when linking straight to my .net dll.  I know the dll is fully operational as have consumed it correctly on a .net eForms without any errors so I’m hoping it’s something simple like inheriting from a wrong namespace for Umbraco etc.

    Quick extract of the class is as follows:

    using System.Xml;

    using System.IO;

    using System.Net;

    using System.Text;

    using System.Web;

    using System.Web.Caching;

    using System;

    using System.Web.UI;

    using System.Web.UI.WebControls;

    using AjaxControlToolkit;

     

    namespace BMBC.Control

    {

        public class rssControl : System.Web.UI.UserControl

        {

     

            private string url;

            private int maxRows;

            private bool showLink;

            private bool showDescription;

            private bool showDate;

            private int cacheTimeoutMinutes;

     

            public string Url

            {

                get

                {

                    return url;

                }

                set

                {

                    url = value;

                }

            }

       }

    }

     

    So, I’ve created a Macro called rssControl with a name of rssControl and alias of rssControl.  On the .net Custom Control I’ve specified the assembly as BMBC.Control.rssControl and set the type to rssControl.  Can anyone shine some light on where I’m going wrong?  My money is on me being very stupid

  • Rob Walker 13 posts 34 karma points
    Nov 18, 2011 @ 11:27
    Rob Walker
    0

    Further information - the AjaxControlToolkit and rssControl dlls are both in the bin folder.  The exact error message is:

  • Rob Walker 13 posts 34 karma points
    Nov 18, 2011 @ 11:40
    Rob Walker
    0

    Got it! for those that get this I found changing the assembly and type without clicking the save button didn't change the display on browse properties!

    Owell - I was right, me = stupid :)

  • Rob Walker 13 posts 34 karma points
    Nov 18, 2011 @ 12:26
    Rob Walker
    0

    well, looks like a world of hurt here - has anyone been able to get an AjaxToolKit control to render through referencing the .dll?  I'm attempting to get the accordion control going.

Please Sign in or register to post replies

Write your reply to:

Draft