System.Web.UI.WebControls.MultiView.Render Method

Writes the System.Web.UI.WebControls.MultiView control content to the specified System.Web.UI.HtmlTextWriter object, for display on the client.

Syntax

protected override void Render (System.Web.UI.HtmlTextWriter writer)

Parameters

writer
An System.Web.UI.HtmlTextWriter that represents the output stream to render HTML content on the client.

Remarks

The MultiView.Render(System.Web.UI.HtmlTextWriter) method is used primarily by control developers when deriving a custom class from the System.Web.UI.WebControls.MultiView control.

The MultiView.Render(System.Web.UI.HtmlTextWriter) method writes the rendered content of the active view to the client using the supplied System.Web.UI.HtmlTextWriter. You can set the active view in a System.Web.UI.WebControls.MultiView control using the MultiView.SetActiveView(View) method or the MultiView.ActiveViewIndex property. You can determine which one of the System.Web.UI.WebControls.View controls in the MultiView.Views collection is the active view, if any, by using the MultiView.GetActiveView method or the MultiView.ActiveViewIndex property.

If an active view is set for the System.Web.UI.WebControls.MultiView control, the active System.Web.UI.WebControls.View control is used to render content for that view and its child controls. If an active view is not set for the System.Web.UI.WebControls.MultiView control, no content is rendered to the System.Web.UI.HtmlTextWriter.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0