HtmlTextWriter::EqualsChar Field
.NET Framework (current version)
Represents the equal sign (=).
Assembly: System.Web (in System.Web.dll)
You might want to use the EqualsDoubleQuoteString field instead of the EqualsChar field when constructing the opening delimiter of an attribute value.
The following code example shows how to render the src attribute and part of its value for an <img> element. The code uses the EqualsChar field in a Write method call to render the equal sign (=) between the src attribute and its value.
This code example renders the following markup:
src="/images/
.NET Framework
Available since 1.1
Available since 1.1
Show: