AdRotator::Render Method (HtmlTextWriter^)

 

Displays the AdRotator control on the client.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public protected:
virtual void Render(
	HtmlTextWriter^ writer
) override

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.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: