HtmlTextWriter::WriteBreak Method ()
.NET Framework (current version)
Writes a <br /> markup element to the output stream.
Assembly: System.Web (in System.Web.dll)
Use the WriteBreak method to render line breaks in custom control or adapter markup. The WriteBreak method writes a space between the br and / for improved HTML compatibility.
The following code example shows how to call the WriteBreak method to write a <br /> element to the requesting browser after the WriteEncodedText method writes the encoded <custID> & <invoice#> markup.
.NET Framework
Available since 2.0
Available since 2.0
Show: