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

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

BulletedList.AutoPostBack プロパティ

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

基本クラスAutoPostBack プロパティの値を取得または設定します

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

例外例外
例外種類条件

NotSupportedException

AutoPostBack に値を割り当てよとしました

解説解説
使用例使用例

次のコード例では、BulletedList コントロールAutoPostBack プロパティの値が常に false なので、このプロパティはこのクラスには適用されません。

<%@ Page Language="VB" %>

<html>
<head>

    <script runat="server">

        Sub Page_Load(ByVal sender As
 Object, ByVal e As System.EventArgs)

            Dim value As Boolean
            ' Get the value of AutoPostBack for this bulleted list.
            value = ItemsBulletedList.AutoPostBack

            ' This property is not applicable to the BulletedList class.
            ' This message will never be displayed.
            If value = True Then
                   Message.Text = "The value of the AutoPostBack
 property is True."
            End If

             ' The default AutoPostBack value inherited from ListControl
 is False.
             ' This message will always be displayed.
            If value = False Then
                Message.Text = "The value of the AutoPostBack
 property is " & value & "."
 _
                    & "This property is inherited by the ListControl
 class." _
                    & "It is not applicable to the BulletedList
 class."
            End If
        End Sub

    </script>

</head>
<body>

    <h3>AutoPostBack Property Example</h3>

    <form ID="Form1" runat="server">
                    
        <asp:BulletedList id="ItemsBulletedList"
 
            BulletStyle="Disc"
            DisplayMode="Text" 
            runat="server">    
                <asp:ListItem Value="0">The
 first list item.</asp:ListItem>
            <asp:ListItem Value="1">The second
 list item.</asp:ListItem>
        <asp:ListItem Value="2">The third list
 item.</asp:ListItem>
        <asp:ListItem Value="3">The fourth list
 item.</asp:ListItem>
        </asp:BulletedList>        
        
    <P>        
    <asp:Label id="Message" 
        Font-Size="12"
        Width="368px" 
        runat="server"/><P>
                           
    </form>

</body>
</html>
<%@ Page Language="C#" %>

<html>
<head>

    <script language="C#" runat="server">

        void Page_Load(Object sender, EventArgs e)
        {
            // Get the value of AutoPostBack for this bulleted list.
            bool value;
            value = ItemsBulletedList.AutoPostBack;

            // This property is not applicable to the BulletedList class.
            // This message will never be displayed.
            if(value)
            {
                Message.Text = "The value of the AutoPostBack property is True.";
            }

            // The default AutoPostBack value inherited from ListControl
 is False.
            // This message will always be displayed.
            if(!value)
            {
                Message.Text = "The value of the AutoPostBack property is "
 + value.ToString() + "."
                    + "This property is inherited by the ListControl class."
                    + "It is not applicable to the BulletedList class.";
            }
        }       


    </script>

</head>
<body>

    <h3>AutoPostBack Property Example</h3>

    <form ID="Form1" runat="server">
                    
        <asp:BulletedList id="ItemsBulletedList" 
            BulletStyle="Disc"
            DisplayMode="Text" 
            runat="server">    
                <asp:ListItem Value="0">The first list item.</asp:ListItem>
            <asp:ListItem Value="1">The second list item.</asp:ListItem>
            <asp:ListItem Value="2">The third list item.</asp:ListItem>
            <asp:ListItem Value="3">The fourth list item.</asp:ListItem>
        </asp:BulletedList>        
        
    <P>        
    <asp:Label id="Message" 
        Font-Size="12"
        Width="368px" 
        runat="server"/><P>
              
    </form>

</body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
BulletedList クラス
BulletedList メンバ
System.Web.UI.WebControls 名前空間
ListControl
AutoPostBack
その他の技術情報
BulletedList Web サーバー コントロール


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS