Could anyone tell me why this code does not work in site created with portuguese language: <SharePoint:AttachmentsField ControlMode="Display" FieldName="Attachments" runat="server" Visible="True" />. It's work fine if saved from sharepoint designer to a english language site, but the same page won't work iif saved to a portuguese language site. It display an error. from the log: Application error when access /paginas/listas.aspx, Error=Operation is not valid due to the current state of the object.
已移動Mike Walsh MVPMVP, 版主2009年7月4日 上午 06:15spd / dvwp question (From:SharePoint - Development and Programming)
Just add "<SharePoint:AttachmentsField ControlMode="Display" FieldName="Attachments" runat="server" Visible="true"/>" to verify if have same problem and work fine to me, listing attachments. Dont think is a portuguese language problem, just try on Portuguese.
The list you try to connect is in same web? Do you select "new item" or "Edit Item", the error happend when you save page or item, on the google find same error saying can be updating problem of the object?
I tried the exact same code on both, english and portuguese. The sites run on the same web and same site collection as the list is running. Sp2 is applied as also language pack sp2 on a 64 bit sharepoint server. I am not trying to edit nor to add an item, I am just trying to display it, in a single page with a data view web part.