Hi all,
I wrote a component with ComponentDesign er
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
[ToolboxItemFilt er("System.Web. UI",ToolboxItem FilterType.Requ ire),
Designer(typeof (Ares.Workflow. WebControls.AFW ebUIControlDesi gner))
]
public class AFWebUIControl : System.Componen tModel.Componen t
{
public AFWebUIControl( )
{
}
}
//Designer
public class AFWebUIControlD esigner : ComponentDesign er
{
public override void Initialize(ICom ponent component)
{
base.Initialize (component);
}
}
---------------------------------------
Any help will be appreciated.
Albert