I ve converted a SiteFinity (C#) app from a Website to a WebApplicationProject. It all works great..except
I used to have in my App_Code a class called MaterialsModule which inherits from the base class WebModule.
Problem: SiteFinity doesn t automagically see this class any more
I ve tried adding a namespace to the class and adding it to the code behind here (which is the page where I m expecting this MaterialModule page to show)
http://localhost/fmwebapp1/Sitefinity/Admin/Modules.aspx
public class MaterialsModule : WebModule
{
public MaterialsModule()
{
}
public override IList<Telerik.Web.IToolboxItem> Controls
{
get
{
return new List<IToolboxItem>(
new ToolboxItem[]
{
new CmsToolboxItem("~/Custom/Modules/Materials/Frontend/Controls/MaterialsList.ascx", "Materials", "Materials List", "Displays list of all materials")
});
}
}
public override string Description
{
get { return "This is the Materials Module"; }
}
public override string Name
{
get { return "Materials"; }
}
public override string Title
{
get { return "Materials"; }
}
public override System.Web.UI.Control CreateControlPanel(System.Web.UI.TemplateControl parent)
{
return new MaterialsControlPanel();
}