ListView.ClientIDRowSuffix ListView.ClientIDRowSuffix ListView.ClientIDRowSuffix ListView.ClientIDRowSuffix Property


取得或設定資料欄位的名稱,這個資料欄位的值會在 ListView 屬性設為 ClientIDMode 時,用來識別 Predictable 控制項的每個唯一的資料列。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.

 virtual property cli::array <System::String ^> ^ ClientIDRowSuffix { cli::array <System::String ^> ^ get(); void set(cli::array <System::String ^> ^ value); };
public virtual string[] ClientIDRowSuffix { get; set; }
member this.ClientIDRowSuffix : string[] with get, set
Public Overridable Property ClientIDRowSuffix As String()



資料欄位的名稱,這個資料欄位的值會在 ASP.NET 產生 ListView 值時,用來識別 ClientID 控制項的每個唯一的執行個體。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.



為避免在控制項的多個資料列ListView中轉譯控制項的多個實例時的命名衝突, ASP.NET 會為控制項的每個實例產生唯一ClientID的值。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. 您可以藉由ClientID ClientIDMode設定屬性來指定產生值的方式。You specify how the ClientID value is generated by setting the ClientIDMode property. 如果您將ClientIDMode屬性設定為Predictable, 則 ASP.NET 會ClientID附加一個衍生自中ClientIDRowSuffix指定之資料欄位的尾碼來產生。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. 如果ClientIDRowSuffix未設定, 則尾碼為連續的數位。If ClientIDRowSuffix is not set, the suffix is a sequential number.