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
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!
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.
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
Further information - the AjaxControlToolkit and rssControl dlls are both in the bin folder. The exact error message is:
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 :)
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.
is working on a reply...