N
Nathan Sokalski
I am using the System.Web.UI.HtmlTextWriter, and would like to create tags
that are self-closing (such as <tagname />). The RenderBeginTag method does
not offer the option of making a self-closing tag (I think it should have an
optional boolean parameter to specify whether it is self-closing, but it
doesn't). I know how to make self-closing tags using the Write methods, but
this requires calling a write method for every attribute and style, and does
not allow you to use the System.Web.UI.HtmlTextWriterAttribute or
System.Web.UI.HtmlTextWriterStyle enumerations. Is there a built-in way that
I am missing to make self-closing tags? Thanks.
that are self-closing (such as <tagname />). The RenderBeginTag method does
not offer the option of making a self-closing tag (I think it should have an
optional boolean parameter to specify whether it is self-closing, but it
doesn't). I know how to make self-closing tags using the Write methods, but
this requires calling a write method for every attribute and style, and does
not allow you to use the System.Web.UI.HtmlTextWriterAttribute or
System.Web.UI.HtmlTextWriterStyle enumerations. Is there a built-in way that
I am missing to make self-closing tags? Thanks.