AdRotator.KeywordFilter Property
Gets or sets a category keyword to filter for specific types of advertisements in the XML advertisement file.
[Visual Basic] Public Property KeywordFilter As String [C#] public string KeywordFilter {get; set;} [C++] public: __property String* get_KeywordFilter(); public: __property void set_KeywordFilter(String*); [JScript] public function get KeywordFilter() : String; public function set KeywordFilter(String);
Property Value
The keyword to filter for specific types of advertisements in the XML advertisement file. The default value is String.Empty.
Remarks
Each advertisement in the XML advertisement file can be assigned a category keyword. Use the KeywordFilter property to filter the advertisements for the specified keyword. Only advertisements containing the keyword will be selected for the AdRotator control. The KeywordFilter property can be programmatically set to match the profile of the user.
The KeywordFilter property is a very simple filter that searches for the specified keyword. It is not possible to specify more than one keyword in the KeywordFilter property, nor is it possible to declare multiple keywords in the advertisement file.
Note The AdvertisementFile property needs to be set for this property to have any effect.
CAUTION If the specified keyword is not found in the XML advertisement file, no advertisement is displayed in the AdRotator control. Be sure to specify a keyword for this property with at least one match in the advertisement file.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
AdRotator Class | AdRotator Members | System.Web.UI.WebControls Namespace | AdvertisementFile