HtmlForm.ClientID 屬性

定義

取得 ASP.NETASP.NETHtmlForm 控制項產生的控制項識別碼。Gets the control identifier that is generated by ASP.NETASP.NET for the HtmlForm control.

public:
 virtual property System::String ^ ClientID { System::String ^ get(); };
public override string ClientID { get; }
member this.ClientID : string
Public Overrides ReadOnly Property ClientID As String

屬性值

ASP.NETASP.NETHtmlForm 控制項產生的控制項識別碼。The control identifier generated by ASP.NETASP.NET for the HtmlForm control.

備註

若要在呈現控制項的多個實例時避免命名衝突,ASP.NETASP.NET 會自動為頁面上的每個控制項產生唯一的 ClientID 值。To prevent naming conflicts when multiple instances of a control are rendered, ASP.NETASP.NET automatically generates a unique ClientID value for each control on a page. 如需詳細資訊,請參閱 Control.ClientID 屬性。For more information, see the Control.ClientID property.

適用於

另請參閱