----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: sachvd Message 3 in Discussion Hi Ritesh,<o:p></o:p> According to your message, I have already used the XML file and linked it with the adrotator control on a web page. But, the problem is that at any time, only one of the images is displayed and only after refreshing the page for one or more times does the other images appear. Is there any way to automate the display of images in a timed fashion? Thanks again, Sachin. From: Ritesh_Kesharwani [mailto:[EMAIL PROTECTED] Sent: Thursday, July 22, 2004 11:48 AM To: [EMAIL PROTECTED] Subject: Re: Adrotator Control New Message on BDOTNET Adrotator Control Reply Reply to Sender Recommend Message 2 in Discussion From: Ritesh_Kesharwani Hi Fellow below step for make the images to be displayed in a timed fashion There are two steps to using the AdRotator on your page: creating an instance of the AdRotator web control on the page and creating the advertisement xml file. Creating an Instance of the AdRotator Web Control The following code should be inserted on each aspx page you would like the ad to appear on: <asp:AdRotator id=AdRotator1 AdvertisementFile="ads.xml" runat="server" /> ---------------------------------------------------------------------------- --------------- The <asp:AdRotator> tag accepts the following properties: * ID: The unique identifier for the AdRotator control. * AdvertisementFile: The path of the advertisement file that contains information about each ad. * KeywordFilter: This property allows you to display ads based on a keyword property that is set in the advertisement file. That's about all it takes to add the AdRotator control to the page. Now onto the Advertisement file. Creating the Advertisement File The advertisement file used by the AdRotator is a simple XML file that should use the following format: ads.xml <Advertisements> <Ad> <ImageUrl>img1.jpg</ImageUrl> <NavigateUrl>http://www.gotothispage.com</NavigateUrl> <AlternateText>This is alt text for the first ad</AlternateText> <Keyword>marbles</Keyword> <Impressions></Impressions> </Ad> <Ad> <ImageUrl>logo.gif</ImageUrl> <NavigateUrl>http://www.nogotothispage.com</NavigateUrl> <AlternateText>This is alt text for the second ad</AlternateText> <Keyword>web development</Keyword> <Impressions></Impressions> </Ad> </Advertisements> ------------------------------------------------------------------------- The advertisement file consists of the following elements: * <Advertisements> This tag should surround all ads within your file. This is called the root element. * <Ad> This tag contains all the attributes for a single ad within your ad list. * <ImageUrl> The path of the image file that will be displayed. * <NavigateUrl> The URL that the image file will link to. * <AlternateText> The ALT text for the image. This will be displayed when a user hovers over the image or if the image can not be found. * <Keyword> This is what the KeywordFilter property of the <asp:AdRotator> tag searches for when filtering ads to display on a page. * <Impressions> This property specifies the relative number of times this ad compared to the other ads. Regard's Ritesh Kesharwani SQL Star Intlernational Ltd. [EMAIL PROTECTED] [EMAIL PROTECTED] www.Riteshk.blogspot.com Cell - 9849976150 View other groups in this category. ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
