Επεξεργασία

Κοινή χρήση μέσω


WebControl.Render(HtmlTextWriter) Method

Definition

Renders the control to the specified HTML writer.

protected:
 override void Render(System::Web::UI::HtmlTextWriter ^ writer);
protected public:
 override void Render(System::Web::UI::HtmlTextWriter ^ writer);
protected override void Render (System.Web.UI.HtmlTextWriter writer);
protected internal override void Render (System.Web.UI.HtmlTextWriter writer);
override this.Render : System.Web.UI.HtmlTextWriter -> unit
Protected Overrides Sub Render (writer As HtmlTextWriter)
Protected Friend Overrides Sub Render (writer As HtmlTextWriter)

Parameters

writer
HtmlTextWriter

The HtmlTextWriter object that receives the control content.

Remarks

The Render method is used primarily by control developers.

The Render method sends the Web control to the specified HtmlTextWriter instance. Override this method to send your custom server control to the client.

The Render method first calls the RenderBeginTag method, then the RenderContents method, and finally the RenderEndTag method to send the control to the client.

Applies to

See also