Version

Render Method (SmartWebControl)

Renders content from this SmartWebControl to the supplied HtmlTextWriter.
Syntax
'Declaration
 
Protected Overrides Sub Render( _
   ByVal output As HtmlTextWriter _
) 
protected override void Render( 
   HtmlTextWriter output
)

Parameters

output
Remarks

Inheritors overriding the Render method must call the base class implementation of it in order for the SmartWebControl to properly dispatch the chore of rendering content to the SmartRenderer created by the subclass' override of CreateRenderer.

Containers that aggregate the SmartWebControl as one of their child elements may use interception to filter the HTML content produced by the SmartRenderer. This involves substituting a second HtmlTextWriter that drains into a StringWriter for the one supplied by the ASP.NET Framework. After rendering of its child elements is complete, the container may serialize the StringWriter and perform post-render text processing, substitution and replacement on the resulting text before forwarding it to the original HtmlTextWriter from the ASP.NET Framework.

Interception incurs overhead when it creates the intermediate string representation, and therefore may not be an applicable technique in web solutions where large amounts of content are rendered.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also