Custom HTMLControl obtained from HtmlImage control not showing in VS2008 toolbar

I have a custom control created from an HtmlImage control that I cannot find in the toolbar, it says "In" ... "no components exist in ...... \ bin \ Debug \ ImageCustomControl.dll that can be placed on the toolbar. ".

Here is the control code:

namespace ImageCustomControl
{   
    public class ImageHtmlControl : HtmlImage
    {
        public override void RenderControl(HtmlTextWriter writer)
        {
            this.Src = "https://somedomain.com" + this.Src;
            base.RenderControl(writer);
        }        
    }
}

      

Here is a post from 2003 that says this is not possible, but just wanted to know if it has changed since then: http://www.microsoft.com/mspress/books/sampchap/5728d.aspx

Thanks in advance.

+2


a source to share





All Articles