locked
adrotator and pagination not working RRS feed

  • Question

  • User-277473267 posted
    Hi,

    anyone can tell me how can i enable adrotator on subpages if I enable pagination on my mobile form

    I use this code

    <mobile:Form visible=true id="Form1" runat="server" Paginate="True">&nbsp;
        <mobile:AdRotator EnableViewState=True visible=True ID="AdRotator1" Runat="server" AdvertisementFile="ad_XMLFile.xml"></mobile:AdRotator>
        <mobile:List ID="PList" Runat="server" DataTextField="line" Alignment="Left" BackColor="White" Decoration="Numbered" ItemsPerPage="10" Wrapping="Wrap">
        </mobile:List></mobile:Form>

    the ad is only shown on first page and if I clik on other page numbers the adrotator control is gone

    if I put the adrotator control below the list control then the adrotator control doesn't even show up on the first page, same happens if i put the adrotator control in panel control or seperate form control




    Sunday, December 25, 2005 3:38 AM

All replies

  • User1625204979 posted
    Can you try putting the AdRotator in the HeaderTemplate of the Form control.  An example of using HeaderTemplate can be found here.
    Tuesday, January 3, 2006 9:17 PM