This documentation is archived and is not being maintained.
HtmlTextWriter::EqualsChar Field
Visual Studio 2010
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/
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: