SearchBox.RenderWebPart Method
This class or member is deprecated. When you upgrade or write new applications that use this class or member, use the new class or member instead. For Enterprise Search in Microsoft Office SharePoint Server 2007, use the SearchBoxEx instead.
Namespace: Microsoft.SharePoint.Portal.WebControls
Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)
Syntax
'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Protected Overrides Sub RenderWebPart ( _
writer As HtmlTextWriter _
)
'Usage
Dim writer As HtmlTextWriter
Me.RenderWebPart(writer)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
protected override void RenderWebPart(
HtmlTextWriter writer
)
Parameters
- writer
Type: System.Web.UI.HtmlTextWriter
The HtmlTextWriter object that receives the WebPart content.
Remarks
The RenderWebPart method might not be called in all cases (for example, when the Web Part is minimized, or if the page is being rendered to a non-HTML device).
Overrides the Microsoft.SharePoint.WebPartPages.WebPart.RenderWebPart method. The RenderWebPart method renders the HTML for the body of this Web Part to the client.