In SharePoint 2007, there are several relatively unknown DataSourceModes you can use with DVWPs (CrossList, ListOfLists, ListItem, and Webs - see http://msdn.microsoft.com/en-us/library/ie/microsoft.sharepoint.webcontrols.spdatasourcemode.aspx). I'm trying to use the Webs value in a DVWP in SharePoint 2010 and I can't seem to get it to work.
I've gone through exactly the same steps in SharePoint Designer in 2007 and 2010:
- Add a DVWP to the page
- Choose the Announcements list as the DataSource (just to get something up and running)
- Display the ID column in a Multiple Item View
- Switch the DataSouceMode to Webs (DataSourceMode="List" -> DataSourceMode="Webs")
This works in 2007, but gives me an error in 2010. Has anyone seen this work successfully in 2010?