[thelist] image rotation - asp.net
Casey Crookston
casey at thecrookstons.com
Wed Apr 20 14:08:26 CDT 2005
Trying to cycle through a series of images on the home page - different
image each time the page is loaded.
This is the original code:
<form runat="server">
<asp:AdRotator AdvertismentFile="HomeImages.xml" runat="server" />
</form>
This is the xml file:
<Advertisements>
<Ad>
<ImageURL>art/image1.jpg</ImageURL>
<AlternateText>FUBAR</AlternateText>
</Ad>
<Ad>
<ImageURL>art/image2.jpg</ImageURL>
<AlternateText>FUBAR</AlternateText>
</Ad>
(.... cut the rest of the adds out)
<Advertisements>
This is the code that is returned:
<form name="_ctl0" method="post" action="default.aspx" id="_ctl0">
<input type="hidden" name="__VIEWSTATE"
value="dDwtMTk2NTM5MTMzNjs7PvL7h0MINHXE+3/XypatNkf1nSgr" />
<a AdvertismentFile="HomeImages.xml" target="_top"><img alt="" border="0"
/></a>
</form>
Needless to say, it doens't work!!! What am I doing wrong?
Casey
More information about the thelist
mailing list