ExtensionBaseTemplate inherits TemplatePage which inturn inherits System.web.UI.Page
ExtensionBaseTemplate --> TemplatePage --> EditPage --> SimplePage --> Page (I think that is the order)
Are you sure you are referenceing to the correct ExtensionBaseTemplate? Try to inherit directly from Dropit.Extension.Core.ExtensionBaseTemplate and see if that helps.
Minesh Shah: Yes, according to my project you are almost right. SimplePage inherits from PageBase which inherits from Page.
But Page inherits from TemplateControl which inherits from Control which inherits from IComponent, IParserAccessor, IUrlResolutionService, IDataBindingsAccessor, IControlBuilderAccessor, IControlDesignerAccessor, IExpressionsAccessor which is a bunch of interfaces...
Erik Nordin: On the top of my page I have "using Dropit.Extension.Core;". When I traced class parents a popup showed "loading Dropit.Extesion.pab"
ERROR:
'..............Composer.Pages.Start' is not allowed here because it does not extend class 'System.Web.UI.Page'.
I created a new project which solved the problem, but I didn't find any solution why it happened.
And my mistake - Minesh Shah is of cause righ. In frustration I thought that ExtensionBaseTemplate didn't inherit from System.Web.UI.Page. My mistake was that I thought Page was in another namespace. I didn't see that the using System.Web.UI on the top.
Hi,
I've just started using Episerver Composer and try to create a startpage with pagetypebuilder based on
the sample made by Ted Nyberg (http://tedgustaf.com/en/blog/2011/9/create-episerver-composer-page-type-with-page-type-builder/)
I'm pretty sure that I've copied the sample exactly how it is presented on Ted's page, but I get an error saying that
'....Start' is not allowed here because it does not extend class 'System.Web.UI.Page'.
I used Resharper to explore what ExtensionBaseTemplate inherited, but couldn't find System.Web.Ui.Page anywhere.
Anyone know why the startpage doesn't inherit System.web.UI.Page?
PTB - startpage (pagetype)
[PageType("C922E5CD-3C58-4920-BE6F-29CCC23A8E66",
Name = "[Skedsmo] Composer StartPage",
Description = "Start page: Dynamic page template with a heavy customizable layout",
Filename = "/Templates/Skedsmo.Internett2/Composer/Pages/Start.aspx")]
public class StartPage : ComposerPageBase
{
[PageTypeProperty(
DisplayInEditMode = false,
UniqueValuePerLanguage = true,
Searchable = true,
Type = typeof(ExtensionContentAreaProperty),
Tab = typeof(ComposerTab))]
public virtual string MainArea { get; set; }
}
public partial class Start : ExtensionBaseTemplate
{
protected override void OnLoad(System.EventArgs e)
{
base.OnLoad(e);
}