A
alberthung01
Hi all,
I wrote a component with ComponentDesigner
to let users drag and drop it to WebPage from toolbox directly.
Just like the behavior of dataAdapter.
But it works fine on ASP.NET 1.1 but not on ASP.NET 2.0.
Sometimes I add it to toolbox in VS2005 WebSite Project but it will
not appear.
And always it can't be drag and drop to WebPage any more.
Nothing will be added to page after that.
Here is my code structure
---------------------------------------
//Class
[ToolboxItemFilter("System.Web.UI",ToolboxItemFilterType.Require),
Designer(typeof(Ares.Workflow.WebControls.AFWebUIControlDesigner))
]
public class AFWebUIControl : System.ComponentModel.Component
{
public AFWebUIControl()
{
}
}
//Designer
public class AFWebUIControlDesigner : ComponentDesigner
{
public override void Initialize(IComponent component)
{
base.Initialize(component);
}
}
I wrote a component with ComponentDesigner
to let users drag and drop it to WebPage from toolbox directly.
Just like the behavior of dataAdapter.
But it works fine on ASP.NET 1.1 but not on ASP.NET 2.0.
Sometimes I add it to toolbox in VS2005 WebSite Project but it will
not appear.
And always it can't be drag and drop to WebPage any more.
Nothing will be added to page after that.
Here is my code structure
---------------------------------------
//Class
[ToolboxItemFilter("System.Web.UI",ToolboxItemFilterType.Require),
Designer(typeof(Ares.Workflow.WebControls.AFWebUIControlDesigner))
]
public class AFWebUIControl : System.ComponentModel.Component
{
public AFWebUIControl()
{
}
}
//Designer
public class AFWebUIControlDesigner : ComponentDesigner
{
public override void Initialize(IComponent component)
{
base.Initialize(component);
}
}