More in this section

Forums / Developing with Sitefinity / Telerik.Framework.Web.Design.ControlDesigner Template

Telerik.Framework.Web.Design.ControlDesigner Template

1 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    24 Jul 2010
    Link to this post
    How do I define an EmbeddedResouce ascx template for an assembly control?

    If I specify the LayoutTemplatePath to be the path to the internal resource I get this

    The relative virtual path 'Assembly.Control.DesignerTemplate.ascx' is not allowed here.



    *EDIT* Got it, was the same as the control itself...Ooops :)


    protected const string MyTemplateName = "Assembly.Control.DesignerTemplate.ascx";
     
    protected override string LayoutTemplateName {
        get {
            return ComparisonChartDesigner.MyTemplateName;
        }
    }
     
    public override string LayoutTemplatePath {
        get {
            return base.LayoutTemplatePath;
        }
        set {
            base.LayoutTemplatePath = value;
        }
    }
1 posts, 0 answered