AdRotator::Render Method (HtmlTextWriter^)
.NET Framework (current version)
Displays the AdRotator control on the client.
Assembly: System.Web (in System.Web.dll)
Parameters
- writer
-
Type:
System.Web.UI::HtmlTextWriter^
A System.Web.UI::HtmlTextWriter that contains the output stream to render on the client.
Displays an image obtained from the advertisement chosen in OnPreRender.
The following code example demonstrates how to override the Render method in a custom server control so that the AdRotator displays a random advertisement, from an XML file, with a link and an image.
.NET Framework
Available since 1.1
Available since 1.1
Show: