GridView.Render(HtmlTextWriter) 方法

定义

使用指定的 HtmlTextWriter 对象将 Web 服务器控件内容呈现给客户端浏览器。Renders the Web server control content to the client's browser using the specified HtmlTextWriter object.

protected public:
 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 Friend Overrides Sub Render (writer As HtmlTextWriter)

参数

writer
HtmlTextWriter

HtmlTextWriter,用于在客户端浏览器上呈现服务器控件内容。The HtmlTextWriter used to render the server control content on the client's browser.

注解

Render 方法用于使用指定的 System.Web.UI.HtmlTextWriter 对象将服务器控件内容呈现到客户端的浏览器。The Render method is used to render the server control content to the client's browser using the specified System.Web.UI.HtmlTextWriter object.

备注

此方法主要由控件开发人员用来扩展 GridView 控件。This method is used primarily by control developers to extend the GridView control.

适用于

另请参阅