locked
Enabling PickUrl Intellisense menu for user control RRS feed

  • Question

  • User-2052822780 posted

    I have a user control for which i need to add image url property. I am encountering the following problem when i use 

     [Editor(typeof(System.Web.UI.Design.ImageUrlEditor), typeof(System.Drawing.Design.UITypeEditor))]
    
    
    What namespaces shud i use to enable the Editor? I ve added the following namespaces already
    using System.Design;
    using System.Web.UI.Design;
    using System.Drawing.Design;
    
    

    Friday, October 26, 2012 7:03 AM

Answers

  • User3866881 posted

    Hello,

    As far as I see, I think you can use both together, a standard usage for such a snippet of code sample should be:

    [EditorAttribute(typeof(System.Web.UI.Design.ImageUrlEditor), typeof(UITypeEditor))]
    public string imageURL
    {
        get
        {
            return imgURL;
        }
        set
        {
            imgURL = value;
        }
    }
    private string imgURL;
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, October 27, 2012 4:30 AM