System.Web.UI.HtmlControls.HtmlImage.RenderAttributes Method

Renders the System.Web.UI.HtmlControls.HtmlImage control's attributes to the specified System.Web.UI.HtmlTextWriter object.

Syntax

protected override void RenderAttributes (System.Web.UI.HtmlTextWriter w)

Parameters

w
a System.Web.UI.HtmlTextWriter

Remarks

If the value of the HtmlImage.Src property is a malformed URL, the HtmlImage.RenderAttributes(System.Web.UI.HtmlTextWriter) method throws an System.Web.HttpException exception.

The HtmlImage.RenderAttributes(System.Web.UI.HtmlTextWriter) method overrides the base class's HtmlImage.RenderAttributes(System.Web.UI.HtmlTextWriter) method to write the src attribute of the rendered System.Web.UI.HtmlControls.HtmlImage control.

The HtmlImage.RenderAttributes(System.Web.UI.HtmlTextWriter) method is used primarily by control developers extending the functionality of the System.Web.UI.HtmlControls.HtmlImage control.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0