Gets or sets the URL of an image to display in the System.Web.UI.WebControls.AdRotator control.
Documentation for this section has not yet been entered.
Use the AdCreatedEventArgs.ImageUrl property to specify the URL of an image to display for an advertisement in the System.Web.UI.WebControls.AdRotator control. You can use a relative or an absolute URL. A relative URL relates the location of the image to the location of the Web page or user control without specifying a complete path on the server. The path is relative to the location of the Web page. This makes it easier to move the entire site to another directory on the server without updating the path to the image in code. An absolute URL provides the complete path, so moving the site to another directory requires updating the code.
A separate XML file contains the properties for the displayed advertisement. The System.Web.UI.WebControls.AdRotator control automatically sets the AdCreatedEventArgs.ImageUrl property with the corresponding image URL entry in the XML file containing the advertisement information. This property can also be used to programmatically set the image URL.
If you use an advertisement file and specify a relative URL for this property, the URL is relative to the directory that the advertisement file is located in. If you set this property directly with a relative URL, instead of using the advertisement file, the URL is relative to the directory of the page or user control that contains the System.Web.UI.WebControls.AdRotator control.