AD Rotator

  <Advertisements>

  <Ad>

    <ImageUrl>~/Images/google.png</ImageUrl>

    <NavigateUrl>https://www.google.com/</NavigateUrl>

    <AlternateText>Please visit on your google page http://www.google.com </AlternateText>

    <Impressions>2</Impressions>

    <Keyword>Google</Keyword>

  </Ad>

  <Ad>

    <ImageUrl>~/Images/w3schools.png</ImageUrl>

    <NavigateUrl>https://www.w3schools.com/</NavigateUrl>

    <AlternateText>Please visit the websit of w3schools http://www.w3schools.com </AlternateText>

    <Impressions>5</Impressions>

    <Keyword>w3schools</Keyword>

  </Ad>

  <Ad>

    <ImageUrl>~/Images/codeproject.png</ImageUrl>

    <NavigateUrl>https://www.codeproject.com/</NavigateUrl>

    <AlternateText>Please visit at http://www.codeproject.com </AlternateText>

    <Impressions>2</Impressions>

    <Keyword>Code Project</Keyword>

  </Ad>

</Advertisements>


2) Add a webform i.e.default.aspx

3) Add Adrotator control from toolbox

4) Set its property ‘Advertisement file’ and assin the xml file to it

5) Add the below code

        <asp:ScriptManager ID="ScriptManaher1" runat="server"></asp:ScriptManager>

        <asp:Timer ID="Timer1" Interval="2000" runat="server"></asp:Timer>

If when the images are needed to move in a specific interval of time

Comments

Popular posts from this blog

WCF service