HtmlInputText コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > HtmlInputText コンストラクタの意味・解説 

HtmlInputText コンストラクタ (String)

入力コントロール タイプ指定して、HtmlInputText クラス新しインスタンス初期化します。

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

解説解説
使用例使用例
<%@ Page Language="VB" AutoEventWireup="True"
 %>

<html>
   <script runat="server" >
  
      Sub Page_Load(sender As Object,
 e As EventArgs)

         ' Create an HtmlInputText control.
         Dim text As HtmlInputText = New
 HtmlInputText("password")
         text.MaxLength = 20
         text.Size = 22
 
         ' Add the control to the Controls collection of the 
         ' PlaceHolder control.
         Place.Controls.Clear()
         Place.Controls.Add(text)
         
      End Sub

      Sub Button_Click(sender As Object,
 e As EventArgs)

         ' Insert secure authentication here.
         ' Make sure to use SSL to secure the connection.

      End Sub
  
   </script>
  
<body>

   <form runat="server">
  
      <h3> HtmlInputText Constructor Example </h3> 
  
      Enter your password: <br>
      <asp:PlaceHolder id="Place" runat="server"/>

      <br><br>
 
      <input Type="submit"
             Value="Submit"
             OnServerClick = "Button_Click" 
             runat="server"/> 
  
   </form>

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

<html>
   <script runat="server" >
  
      void Page_Load(Object sender, EventArgs e)
      {

         // Create an HtmlInputText control.
         HtmlInputText text = new HtmlInputText("password");
         text.MaxLength = 20;
         text.Size = 22;
 
         // Add the control to the Controls collection of the 
         // PlaceHolder control.
         Place.Controls.Clear();
         Place.Controls.Add(text);
         
      }

      void Button_Click(Object sender, EventArgs e)
      {

         // Insert secure authentication here.
         // Make sure to use SSL to secure the connection.

      }
  
   </script>
  
<body>

   <form runat="server">
  
      <h3> HtmlInputText Constructor Example </h3> 
  
      Enter your password: <br>
      <asp:PlaceHolder id="Place" runat="server"/>

      <br><br>
 
      <input Type="submit"
             Value="Submit"
             OnServerClick = "Button_Click" 
             runat="server"/> 
  
   </form>

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

HtmlInputText コンストラクタ

HtmlInputText クラス新しインスタンス初期化します。
オーバーロードの一覧オーバーロードの一覧

参照参照

関連項目

HtmlInputText クラス
HtmlInputText メンバ
System.Web.UI.HtmlControls 名前空間
HtmlInputPassword クラス

その他の技術情報

HTML サーバー コントロール

HtmlInputText コンストラクタ ()

既定値使用して HtmlInputText クラス新しインスタンス初期化します。

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

public HtmlInputText ()
public:
HtmlInputText ()
public HtmlInputText ()
public function HtmlInputText ()
解説解説
使用例使用例
<%@ Page Language="VB" AutoEventWireup="True"
 %>

<html>
   <script runat="server" >
  
      Sub Page_Load(sender As Object,
 e As EventArgs)

         ' Create an HtmlInputText control.
         Dim text As HtmlInputText = New
 HtmlInputText()
         text.Value = "Enter a value."
         text.MaxLength = 20
         text.Size = 22
 
         ' Add the control to the Controls collection of the 
         ' PlaceHolder control.
         Place.Controls.Clear()
         Place.Controls.Add(text)
         
      End Sub
  
   </script>
  
<body>

   <form runat="server">
  
      <h3> HtmlInputText Constructor Example </h3> 
  
      <asp:PlaceHolder id="Place" runat="server"/>
  
   </form>

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

<html>
   <script runat="server" >
  
      void Page_Load(Object sender, EventArgs e)
      {

         // Create an HtmlInputText control.
         HtmlInputText text = new HtmlInputText();
         text.Value = "Enter a value.";
         text.MaxLength = 20;
         text.Size = 22;
 
         // Add the control to the Controls collection of the 
         // PlaceHolder control.
         Place.Controls.Clear();
         Place.Controls.Add(text);
         
      }
  
   </script>
  
<body>

   <form runat="server">
  
      <h3> HtmlInputText Constructor Example </h3> 
  
      <asp:PlaceHolder id="Place" runat="server"/>
  
   </form>

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


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

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

辞書ショートカット

すべての辞書の索引

「HtmlInputText コンストラクタ」の関連用語

HtmlInputText コンストラクタのお隣キーワード
検索ランキング

   

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



HtmlInputText コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS