1
我有一個FormView,它具有一個數據源綁定作爲一個WCF服務的對象。在WCF服務中,我有一個Object PublicationDetail,它有一個屬性List authors;如何將列表內容顯示爲連接字符串
我要加入列表的內容並打印出來的表格視圖但是我落在以下錯誤:
Unable to cast object of type 'System.String[]' to type 'System.Collections.Generic.List`1[System.String]'.
,代碼:
<asp:Label ID="AuthorsLabel" runat="server" Text='<%# String.Join(",", ((List<string>)Eval("Authors")).ToArray()) %>' />
的GAD母親它的工作我試過很多東西並沒有什麼工作至今:)謝謝 –