DataFormWebPart.ListName Property
Specifies the GUID of the list.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
ListName in SP 2010 now enforces GUID value
If you are seeing the "The specified value is invalid because it is null or cannot be converted to a Guid." error because you supplied the actual list name as the value of the listname attribute, try using the ListDisplayName attribute instead. This elimantes the error and allows you to reference the list via its name instead of the ID/GUID.
- 9/28/2010
- Sean Nuckolls
ListName in SP 2010 now enforces GUID value
The following error is thrown if the ListName is supplied rather than a GUID value. Eg ListName="Announcements" now throws The specified value is invalid because it is null or cannot be converted to a
Guid.
The format now needs to be ListName="{D05FE419-9AFD-4AC1-B370-422ABD00B084}"
The format now needs to be ListName="{D05FE419-9AFD-4AC1-B370-422ABD00B084}"
- 7/21/2010
- Justin Raymond