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

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

ValidationSummary.HeaderText プロパティ

検証要約ページヘッダー セクション表示されるテキスト取得または設定します既定値Empty です。

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

<BindableAttribute(True)> _
Public Property HeaderText As
 String
Dim instance As ValidationSummary
Dim value As String

value = instance.HeaderText

instance.HeaderText = value
[BindableAttribute(true)] 
public string HeaderText { get;
 set; }
[BindableAttribute(true)] 
public:
property String^ HeaderText {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_HeaderText ()

/** @property */
public void set_HeaderText (String value)

プロパティ
検証要約ページヘッダー セクション表示されるテキスト

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ValidationSummary クラス
ValidationSummary メンバ
System.Web.UI.MobileControls 名前空間
その他の技術情報
ValidationSummary コントロール概要

ValidationSummary.HeaderText プロパティ

概要の上部に表示するヘッダー テキスト取得または設定します

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

<LocalizableAttribute(True)> _
Public Property HeaderText As
 String
Dim instance As ValidationSummary
Dim value As String

value = instance.HeaderText

instance.HeaderText = value
[LocalizableAttribute(true)] 
public string HeaderText { get;
 set; }
[LocalizableAttribute(true)] 
public:
property String^ HeaderText {
    String^ get ();
    void set (String^ value);
}
/** @property */
public String get_HeaderText ()

/** @property */
public void set_HeaderText (String value)

プロパティ
概要の上部に表示するヘッダー テキスト既定値は String.Empty です。

解説解説
使用例使用例

HeaderText プロパティ使用してValidationSummary コントロールタイトル表示する方法次のコード例示します

<%@ Page Language="VB"%>

<html>
  <body>
    <form runat="server">
    
      Name:<br/>
      <asp:textbox id="NameTextBox"
        runat="server"/>
        
      <asp:requiredfieldvalidator id="NameTextBoxRequiredValidator"
        controltovalidate="NameTextBox"
        errormessage="Name field."
        text="Please enter your name"
        runat="server"/>     
        
      <br/>  
      
      City:<br/>
      <asp:textbox id="CityTextBox"
        runat="server"/>
        
      <asp:requiredfieldvalidator id="CityTextBoxRequiredValidator"
        controltovalidate="CityTextBox"
        errormessage="City field."
        text="Please enter the city."
        runat="server"/> 
        
      <br/>
      
      <asp:Button id="SubmitButton"
        text="Submit"
        runat="server"/>
      
      <hr/>
      
      <asp:ValidationSummary 
        id="valSum" 
        displaymode="BulletList" 
        headertext="You must enter a value in the following fields:"
        runat="server"/>
    
    </form>
  </body>
</html>
 
<%@ Page Language="C#"%>

<html>
  <body>
    <form runat="server">
    
      Name:<br/>
      <asp:textbox id="NameTextBox"
        runat="server"/>
        
      <asp:requiredfieldvalidator id="NameTextBoxRequiredValidator"
        controltovalidate="NameTextBox"
        errormessage="Name field."
        text="Please enter your name"
        runat="server"/>     
        
      <br/>  
      
      City:<br/>
      <asp:textbox id="CityTextBox"
        runat="server"/>
        
      <asp:requiredfieldvalidator id="CityTextBoxRequiredValidator"
        controltovalidate="CityTextBox"
        errormessage="City field."
        text="Please enter the city."
        runat="server"/> 
        
      <br/>
      
      <asp:Button id="SubmitButton"
        text="Submit"
        runat="server"/>
      
      <hr/>
      
      <asp:ValidationSummary 
        id="valSum" 
        displaymode="BulletList" 
        headertext="You must enter a value in the following
 fields:"
        runat="server"/>
    
    </form>
  </body>
</html>
 
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ValidationSummary クラス
ValidationSummary メンバ
System.Web.UI.WebControls 名前空間



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS