HiddenField.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 object 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.
继承者说明
扩展控件时 HiddenField ,可以重写此方法以呈现控件的自定义内容。When extending the HiddenField control, you can override this method to render custom content for the control.