Renders the System.Web.UI.HtmlControls.HtmlInputImage control's attributes to the specified System.Web.UI.HtmlTextWriter object.
- writer
- The System.Web.UI.HtmlTextWriter that contains the output stream to render on the client.
The HtmlInputImage.RenderAttributes(System.Web.UI.HtmlTextWriter) method resolves the URL set in the HtmlInputImage.Src property, writes the onclick attribute of the rendered System.Web.UI.HtmlControls.HtmlInputImage control if the HtmlInputImage.CausesValidation property is true, and finally calls the base HtmlInputControl.RenderAttributes(System.Web.UI.HtmlTextWriter) method. If the value of the HtmlInputImage.Src property is a malformed URL, an System.Web.HttpException exception is thrown.
The HtmlInputImage.RenderAttributes(System.Web.UI.HtmlTextWriter) method is used primarily by control developers extending the functionality of the System.Web.UI.HtmlControls.HtmlInputImage control.