ListView.ClientIDRowSuffix Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the name of the data field whose value is used to uniquely identify each data row of a ListView control when the ClientIDMode property is set to Predictable.
public:
virtual property cli::array <System::String ^> ^ ClientIDRowSuffix { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.StringArrayConverter))]
public virtual string[] ClientIDRowSuffix { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.StringArrayConverter))>]
member this.ClientIDRowSuffix : string[] with get, set
Public Overridable Property ClientIDRowSuffix As String()
Property Value
The name of the data field whose value is used to uniquely identify each instance of a ListView control when ASP.NET generates the ClientID value.
- Attributes
Remarks
To prevent naming conflicts when multiple instances of a control are rendered in multiple rows of a ListView control, ASP.NET generates a unique ClientID value for each instance of the control. You specify how the ClientID value is generated by setting the ClientIDMode property. If you set the ClientIDMode property to Predictable, ASP.NET generates the ClientID by appending a suffix that is derived from the data field specified in ClientIDRowSuffix. If ClientIDRowSuffix is not set, the suffix is a sequential number.
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應