AdRotator.ImageUrlField プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > AdRotator.ImageUrlField プロパティの意味・解説 

AdRotator.ImageUrlField プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

広告ImageUrl 属性代わりに使用するカスタム データ フィールド取得または設定します

名前空間: System.Web.UI.WebControls
アセンブリ: System.Web (system.web.dll 内)
構文構文

Dim instance As AdRotator
Dim value As String

value = instance.ImageUrlField

instance.ImageUrlField = value
public string ImageUrlField { get;
 set; }
public:
property String^ ImageUrlField {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_ImageUrlField ()

/** @property */
public void set_ImageUrlField (String value)
public function get ImageUrlField
 () : String

public function set ImageUrlField
 (value : String)

プロパティ
広告表示されるイメージURL格納されているフィールド識別する名前。既定値は "ImageUrl" です。

解説解説
使用例使用例

ImageUrlField プロパティ使用してカスタム データ フィールド指定するコード例次に示します。NavigateUrlField、ImageUrlField、および AlternateTextField の各プロパティは、それぞれ NavigateUrlImageUrl、および AlternateText の各属性代わりに使用するカスタム フィールド動的に選択するために使用します。この例ではデバイス フィルタ使用しWAP (Wireless Application Protocol: ワイヤレス アプリケーション プロトコル) 対応のデバイスカスタム フィールド使用することを示します

<%@ page language="VB" %>

<html>
<body>
  <form id="form1" runat="server">
  <div>
    <p>This example demonstrates using the AdRotator control.</p>
    <p>
      <asp:AdRotator ID="AdRotator1" Runat="server"
 
        DataSourceID="Ads" AdType=Popup Winwap:AdType="Banner"
 
        Winwap:NavigateUrlField="WMLNavigateUrl"
        Winwap:ImageUrlField="WmlImageUrl"
        Winwap:AlternateTextField="WmlAlternateText"
      />
      <asp:XmlDataSource ID="Ads" 
        Runat="server" 
        DataFile="~/App_Data/AdvertisementList.xml">
      </asp:XmlDataSource>
    </p>
  </div>
  </form>
</body>
</html>
<%@ page language="C#" %>

<html>
<body>
  <form id="form1" runat="server">
  <div>
    <p>This example demonstrates using the AdRotator control.</p>
    <p>
      <asp:AdRotator ID="AdRotator1" Runat="server" 
        DataSourceID="Ads" AdType=Popup Winwap:AdType="Banner"
 
        Winwap:NavigateUrlField="WMLNavigateUrl"
        Winwap:ImageUrlField="WmlImageUrl"
        Winwap:AlternateTextField="WmlAlternateText"
      />
      <asp:XmlDataSource ID="Ads" 
        Runat="server" 
        DataFile="~/App_Data/AdvertisementList.xml">
      </asp:XmlDataSource>
    </p>
  </div>
  </form>
</body>
</html>

前の例のサンプル XML データ次に示します

<Advertisements>
  <Ad>
    <ImageUrl>~/Images/ad1.gif</ImageUrl>
    <NavigateUrl>http://msdn.microsoft.com/vbasic/</NavigateUrl>
    <AlternateText>Visual Basic Developer Site</AlternateText>
    <Width>140</Width>
    <Height>100</Height>
      <!-- The following custom elements will be used by WAP-enabled
        devices. -->
     <WmlImageUrl>~/Images/mobileAd1.jpg</WmlImageUrl>
    <WmlNavigateUrl>http://msdn.microsoft.com/mobile/</WmlNavigateUrl>
    <WmlAlternateText>Windows Mobile Developer Site</WmlAlternateText>

  </Ad>
  <Ad>
    <ImageUrl>~/Images/ad2.gif</ImageUrl>
    <NavigateUrl>http://msdn.microsoft.com</NavigateUrl>
    <AlternateText>MSDN</AlternateText>
    <Width>150</Width>
    <Height>150</Height>
    <!-- The following custom elements will be used by WAP-enabled
      devices. -->
    <WmlImageUrl>~/Images/mobileAd2.jpg</WmlImageUrl>
    <WmlNavigateUrl>http://msdn.microsoft.com/mobility/</WmlNavigateUrl>
    <WmlAlternateText>Windows Mobile Developer Site</WmlAlternateText>
  </Ad>
</Advertisements>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
AdRotator クラス
AdRotator メンバ
System.Web.UI.WebControls 名前空間
AdCreatedEventArgs.ImageUrl プロパティ
AdRotator.AdvertisementFile プロパティ
その他の技術情報
AdRotator Web サーバー コントロール


このページでは「.NET Framework クラス ライブラリ リファレンス」からAdRotator.ImageUrlField プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からAdRotator.ImageUrlField プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からAdRotator.ImageUrlField プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

AdRotator.ImageUrlField プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



AdRotator.ImageUrlField プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS