I've found something on MSDN telling the use of the TagPrefix Attribute in
the Custom Control Creation, but in our case I think you cannot afford to
put a
'using System.Web.UI' in the assembly of the Kentico.CMS.DataEngine to
maintain the general usability of this dll even in non-web applications.
So... i'm looking for a solution, it's an interesting matter
This is the chunk of MSDN I've found :
To change the tag prefix
Under the CustomLabel project in Solution Explorer, double-click
AssemblyInfo to open the AssemblyInfo file in the designer. Add an Imports
statement (in Visual Basic) or using statement (in Visual C#) at the top of
the AssemblyInfo page:
' Visual Basic
Imports System.Web.UI
// C#
using System.Web.UI;
Add an Assembly: TagPrefix attribute to the list of assembly attributes.
This will specify the new TagPrefix for the CustomLabel control, in this
case xxx.
' Visual Basic
<Assembly: TagPrefix("CustomLabel", "xxx")>
//C#
[assembly: TagPrefix("CustomLabel", "xxx")]
This suggest that you put the 'using' and the TagPrefix line in the
dataEngine dll...that's crazy IMHO !
Stefano G.