WebPartMobileAdapter.Render Method
Does nothing if the control that is being adapted is on a WebPartMobilePage, otherwise calls the base Render(HtmlTextWriter) method.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Protected Overrides NotOverridable Sub Render ( _
writer As HtmlTextWriter _
)
'Usage
Dim writer As HtmlTextWriter
Me.Render(writer)
protected override sealed void Render(
HtmlTextWriter writer
)
Parameters
writer
Type: System.Web.UI.HtmlTextWriterThe object that writes the HTML of the control.
Remarks
Render(HtmlTextWriter) does nothing if the control that is being adapted is on a mobile Web Part page.
The role of this class in Microsoft SharePoint Foundation 2010 is quite different from its role in Microsoft ASP.NET 3.5. In the latter, developers override this method to specify the adapted rendering of the control. In SharePoint Foundation 2010 the class is sealed and either does nothing or, when the control that is being adapted is not on a mobile Web Part page, it only calls the Render(HtmlTextWriter) method of the parent System.Web.UI.Adapters.ControlAdapter class. To produce the adapter’s custom rendering, developers must override the CreateControlsForSummaryView() and CreateControlsForDetailView() methods. This system prevents developers from directly writing HTML markup into the writer parameter object and preserves SharePoint Foundation 2010 security.