J
Jim Buck
I built a custom web control and can add it to the
toolbox. However when I drag the control onto a web form
niether the control tags nor the "register" directive get
created. My class looks like the following, does anyone
know what could be wrong. The custom control and the form
are in different assemblies.
[ToolboxItem(true),
DefaultProperty("Name"),
ToolboxBitmap(typeof
(MyControl), "ToolboxBitmaps.MyControl.bmp"),
ToolboxData("<{0}:MyControl runat=server></
{0}:MyControl>")]
public class MyControl : CustomControl
{
// Ommitted
}
toolbox. However when I drag the control onto a web form
niether the control tags nor the "register" directive get
created. My class looks like the following, does anyone
know what could be wrong. The custom control and the form
are in different assemblies.
[ToolboxItem(true),
DefaultProperty("Name"),
ToolboxBitmap(typeof
(MyControl), "ToolboxBitmaps.MyControl.bmp"),
ToolboxData("<{0}:MyControl runat=server></
{0}:MyControl>")]
public class MyControl : CustomControl
{
// Ommitted
}