Web Part Custom Property Builder RRS feed

  • Question

  • Hi All,

    I want to create a custom property with custom text builder page, (rather than the standard text builder "/_layouts/Zoombldr.aspx")

    I refer this article http://www.zimbio.com/VisualStudio/articles/8/HtmlDesignerAttribute+Custom+Property+Builders


    I have added the following in my Web Part Class:

    public partial class MyWebPart: System.Web.UI.WebControls.WebParts.WebPart
    private string _MyProp = "";
                + "status=no;resizable=no;unadorned=yes;")]
            public string MyProp
                get { return _MyProp; }
                set { _MyProp= value; }
    protected override string GetCustomBuilder(string propertyname)
                if (propertyname == "MyProp")
                    return "/_layouts/MySolution/CustomBuilder.aspx?IsDlg=1";
                return null;



    However, I got the following error when I build the class

    "MySolution.MyWebPart.GetCustomBuilder(string)': no suitable method found to override"

    Could anyone help me?



    • Edited by LamLin Thursday, November 10, 2011 10:34 AM
    Thursday, November 10, 2011 10:31 AM

All replies