ASP.NET AdvertisementFile ÊôÐÔ

¶¨ÒåºÍÓ÷¨

AdvertisementFile ÊôÐÔÓÃÓÚÉèÖûò·µ»Ø°üº¬¹ã¸æÐÅÏ¢µÄ XML ÎļþµÄ·¾¶¡£

Óï·¨

<asp:AdRotator AdvertisementFile="path" runat="server" />
ÊôÐÔ ÃèÊö
path

×Ö·û´®Öµ£¬¹æ¶¨°üº¬¹ã¸æÊý¾ÝµÄ XML ÎļþµÄλÖá£

¿ÉÄܵÄÖµ£º

  • ¾ø¶Ô·¾¶£º (±ÈÈç http://www.w3school.com.cn/ads/bigad.xml)
  • ÐéÄâ¸ù·¾¶£º (±ÈÈç ~/ads/bigad.xml)
  • Ïà¶Ô·¾¶£º(±ÈÈç ../ads/bigad.xml).

ʵÀý

ÏÂÃæµÄÀý×ÓÉùÃ÷ÁËÒ»¸ö AdRotator£¨ÔÚ TIY Öв鿴´Ë XML Îļþ£©£º

<form runat="server">
<asp:AdRotator id="ad1" runat="server" AdvertisementFile="Ad1.xml" />
</form>

ʵÀý

ÉèÖà AdRotator ¿Ø¼þÖÐµÄ AdvertismentFile ÊôÐÔ