WebUtils.RenderControl

Renders a control dynamically by creating a new Page and Form control and then adding the control to be rendered to it.

public static string RenderControl(Control control,
	bool useDynamicPage)

Return Value

Html or empty

Parameters

control
The control that is to be rendered

useDynamicPage
if true forces a Page to be created

Remarks

This routine works to render most Postback controls but it has a bit of overhead as it creates a separate Page instance

Overloads:


See also:

Class WebUtils

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic