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

Control.ID プロパティ

サーバー コントロール割り当てられプログラム ID取得または設定します

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

解説解説
使用例使用例
Sub Page_Init(sender As Object,
 e As EventArgs)
   ' Add a event Handler for 'Init'.
   AddHandler myControl.Init, AddressOf Control_Init
End Sub

Sub Control_Init(sender As Object,
 e As EventArgs)
   Response.Write(("The ID of the object initially : "
 + myControl.ID))
   ' Change the ID property.
   myControl.ID = "TestControl"
   Response.Write(("<br>The changed ID : " +
 myControl.ID))
End Sub
void Page_Init(object sender,EventArgs e)
{
   // Add a event Handler for 'Init'.
   myControl.Init += new System.EventHandler(Control_Init);
}

void Control_Init(object sender,EventArgs e)
{ 
  Response.Write("The ID of the object initially : " + myControl.ID); 
     
  // Change the ID property.
   myControl.ID="TestControl";
   Response.Write("<br>The changed ID : " + myControl.ID);
}
void Page_Init(Object sender,EventArgs e)
{
    // Add a event Handler for 'Init'.
    myControl.add_Init(new System.EventHandler(Control_Init));
} //Page_Init

void Control_Init(Object sender,EventArgs e)
{ 
    get_Response().Write("The ID of the object initially : " 
        + myControl.get_ID());
    // Change the ID property.
    myControl.set_ID("TestControl");
    get_Response().Write("<br>The changed ID : " + myControl.get_ID());
} //Control_Init
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
Control クラス
Control メンバ
System.Web.UI 名前空間
Control.NamingContainer
INamingContainer



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

辞書ショートカット

すべての辞書の索引

「Control.ID プロパティ」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS