1

Closed

Add ImageUrl Support to AddToCartHyperLink Control

description

protected override void RenderContents(HtmlTextWriter writer)
    {
        if (this.ImageUrl.Length > 0)
        {
            Image img = new Image();
            img.ImageUrl = ResolveUrl(this.ImageUrl);
            img.AlternateText = this.Text;
            img.BorderWidth = new Unit(0, UnitType.Pixel);
            img.RenderControl(writer);
        }
        else
        {
            writer.Write(Text);
        }
    }
Closed Jan 23, 2007 at 5:26 PM by mchouteau
It's implemented

comments