ASP.Net AdRotator Control
The AdRotator control is an ASP.NET rich control that is used to create and manipulate banner advertisements in Web pages. It can automatically rotate through a series of advertisements, displaying each with the specified frequency. The properties of the banner advertisements to be displayed by the control are specified in an XML file.
اذا كنت تريد ان تعرف كيف تصمم موقع الكتروني فاقرأ هذا المقال
|AdvertisementFile||The path to the XML file that contains the banner advertisements to be displayed.|
|KeywordFilter||Only the advertisements matching the set filter are returned.|
|Target||When the user clicks the advertisement, the page is opened in this window or frame.possible values are _top, _new, _child, _self, _parent, _blank.|
|OnAdCreated||Raises the AdCreated event.|
|AdCreated||Raised after an advertisement is retrieved from the file and before it is rendered.|
The properties of an advertisement are described below. All except the ImageUrl are optional.
- ImageUrl: It indicates the URL of the image to be displayed in the advertisement. It can be either a relative or an absolute path.
- NavigateUrl: It indicates the URL of the target Web site to which users will be taken when they click on the advertisement.
- AlternateText: It is displayed in browsers that do not support images. It is also used to display ToolTip text.
- Keyword: It indicates the advertisement category.
- Impressions: It indicates the weightage given to the advertisement with respect to the other advertisements in the file. An advertisement with a higher value will be shown more number of times.