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

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

ValidationSummary.ShowSummary プロパティ

検証概要インライン表示するかどうかを示す値を取得または設定します

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

Dim instance As ValidationSummary
Dim value As Boolean

value = instance.ShowSummary

instance.ShowSummary = value
public bool ShowSummary { get;
 set; }
public:
property bool ShowSummary {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_ShowSummary ()

/** @property */
public void set_ShowSummary (boolean value)

プロパティ
検証概要インライン表示する場合trueそれ以外場合false既定値true です。

解説解説
使用例使用例

ShowMessageBox プロパティShowSummary プロパティ使用して検証概要メッセージ ボックスWeb ページ両方表示することを指定する方法次のコード例示します

<%@ Page Language="VB" AutoEventWireup="True"
 %>
 <html>
 <head>
 
 </head>
 <body>
 
    <h3>ValidationSummary Sample</h3>
    <p>
 
    <form runat="server">
 
       <table cellpadding=10>
          <tr>
             <td>
                <table bgcolor="#eeeeee" cellpadding=10>
 
                   <tr>
                      <td colspan=3>
                         <b>Credit Card Information</b>
                      </td>
                   </tr>
                   <tr>
                      <td align=right>
                         Card Type:
                      </td>
                      <td>
                         <asp:RadioButtonList id=RadioButtonList1 
                              RepeatLayout="Flow"
                               runat=server>
                            <asp:ListItem>MasterCard</asp:ListItem>
                            <asp:ListItem>Visa</asp:ListItem>
                         </asp:RadioButtonList>
                      </td>
                      <td align=middle rowspan=1>
                         <asp:RequiredFieldValidator 
                              id="RequiredFieldValidator1"
                              ControlToValidate="RadioButtonList1"
 
                              ErrorMessage="Card Type. "
                              Display="Static"
                              InitialValue="" Width="100%"
 runat=server>
                            *
                         </asp:RequiredFieldValidator>
                      </td>
                   </tr>
                   <tr>
                      <td align=right>
                         Card Number:
                      </td>
                      <td>
                         <asp:TextBox id=TextBox1 runat=server />
                      </td>
                      <td>
                         <asp:RequiredFieldValidator 
                              id="RequiredFieldValidator2"
                              ControlToValidate="TextBox1"
 
                              ErrorMessage="Card Number. "
                              Display="Static"
                              Width="100%" runat=server>
                            *
                         </asp:RequiredFieldValidator>
                      </td>
                   </tr>
 
                   <tr>
                      <td></td>
                      <td>
                         <asp:Button 
                              id=Button1 
                              text="Validate" 
                              runat=server />
                      </td>
                      <td></td>
                   </tr>
                </table>
             </td>
             <td valign=top>
                <table cellpadding=20>
                   <tr>
                      <td>
                         <asp:ValidationSummary 
                              id="valSum" 
                              DisplayMode="BulletList"
 
                              runat="server"
                              ShowSummary="True"
                              HeaderText="You must enter a value
 in the following fields:"
                              Font-Name="verdana"
 
                              Font-Size="12"/>
                      </td>
                   </tr>
                </table>
             </td>
          </tr>
       </table>
 
    </form>
 
 </body>
 </html>
    
<%@ Page Language="C#" AutoEventWireup="True" %>
 <html>
 <head>
 
 </head>
 <body>
 
    <h3>ValidationSummary Sample</h3>
    <p>
 
    <form runat="server">
 
       <table cellpadding=10>
          <tr>
             <td>
                <table bgcolor="#eeeeee" cellpadding=10>
 
                   <tr>
                      <td colspan=3>
                         <b>Credit Card Information</b>
                      </td>
                   </tr>
                   <tr>
                      <td align=right>
                         Card Type:
                      </td>
                      <td>
                         <asp:RadioButtonList id=RadioButtonList1 
                              RepeatLayout="Flow"
                               runat=server>
                            <asp:ListItem>MasterCard</asp:ListItem>
                            <asp:ListItem>Visa</asp:ListItem>
                         </asp:RadioButtonList>
                      </td>
                      <td align=middle rowspan=1>
                         <asp:RequiredFieldValidator 
                              id="RequiredFieldValidator1"
                              ControlToValidate="RadioButtonList1" 
                              ErrorMessage="Card Type. "
                              Display="Static"
                              InitialValue="" Width="100%" runat=server>
                            *
                         </asp:RequiredFieldValidator>
                      </td>
                   </tr>
                   <tr>
                      <td align=right>
                         Card Number:
                      </td>
                      <td>
                         <asp:TextBox id=TextBox1 runat=server />
                      </td>
                      <td>
                         <asp:RequiredFieldValidator 
                              id="RequiredFieldValidator2"
                              ControlToValidate="TextBox1" 
                              ErrorMessage="Card Number. "
                              Display="Static"
                              Width="100%" runat=server>
                            *
                         </asp:RequiredFieldValidator>
                      </td>
                   </tr>
 
                   <tr>
                      <td></td>
                      <td>
                         <asp:Button 
                              id=Button1 
                              text="Validate" 
                              runat=server />
                      </td>
                      <td></td>
                   </tr>
                </table>
             </td>
             <td valign=top>
                <table cellpadding=20>
                   <tr>
                      <td>
                         <asp:ValidationSummary 
                              id="valSum" 
                              DisplayMode="BulletList" 
                              runat="server"
                              ShowSummary="True"
                              HeaderText="You must enter a value in
 the following fields:"
                              Font-Name="verdana" 
                              Font-Size="12"/>
                      </td>
                   </tr>
                </table>
             </td>
          </tr>
       </table>
 
    </form>
 
 </body>
 </html>
    
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ValidationSummary クラス
ValidationSummary メンバ
System.Web.UI.WebControls 名前空間
ValidationSummary.ShowMessageBox プロパティ



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

辞書ショートカット

すべての辞書の索引

「ValidationSummary.ShowSummary プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS