M
Mark Goldin
I am trying to create my first composite control.
Here is the code:
using System;
using System.Collections;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace CompositeControls
{
[ToolboxData("<{0}:LabelMaskEdit runat=server></{0}:InteractiveSearchBox>")]
public class LabelMaskEdit : Table, INamingContainer
{
protected Label LabelName = new Label();
protected Infragistics.WebUI.WebDataInput.WebMaskEdit SearchTextBox = new
Infragistics.WebUI.WebDataInput.WebMaskEdit();
}
}
After I complied the control I can add it to Toolbar with no problem but
when I add the control from Toolbar to aspx page I see a box with "Error
creating control ..."
Can someone help, please?
Here is the code:
using System;
using System.Collections;
using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace CompositeControls
{
[ToolboxData("<{0}:LabelMaskEdit runat=server></{0}:InteractiveSearchBox>")]
public class LabelMaskEdit : Table, INamingContainer
{
protected Label LabelName = new Label();
protected Infragistics.WebUI.WebDataInput.WebMaskEdit SearchTextBox = new
Infragistics.WebUI.WebDataInput.WebMaskEdit();
}
}
After I complied the control I can add it to Toolbar with no problem but
when I add the control from Toolbar to aspx page I see a box with "Error
creating control ..."
Can someone help, please?