MenuAdapter.RenderContents Method
Assembly: System.Web (in system.web.dll)
protected void RenderContents ( HtmlTextWriter writer )
protected override function RenderContents ( writer : HtmlTextWriter )
Parameters
- writer
The HtmlTextWriter containing methods to build and render the device-specific output.
The RenderContents method writes the MenuItem objects of the associated Menu control to the output stream as hyperlinks. The RenderContents method is called from the Render method and is used to perform modifications to the markup code that is rendered to a device browser.
Control properties should be set prior to this phase of the life cycle and only the actual markup creation for the control done here. Changes made to the control in this stage of the life cycle are not saved to view state. For saving changes made to the control, override the OnPreRender event.
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.