Export (0) Print
Expand All

HtmlTextWriter.Write Method (Double)

Writes the text representation of a double-precision floating-point number to the output stream, along with any pending tab spacing.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

public override void Write (
	double value
)
public void Write (
	double value
)
public override function Write (
	value : double
)
Not applicable.

Parameters

value

The Write method generates any tabs that are pending, and then calls the Write base method.

The following code example shows how to use the Write method to render the value of the Double.MaxValue field.

This code example generates the following markup:

<label>

1.79769313486232E+308

</label>

// Use the Write(Double) method to render
// the MaxValue field of the Double structure. 
writer.RenderBeginTag(HtmlTextWriterTag.Label);
writer.Write(Double.MaxValue);
writer.RenderEndTag();

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft