Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

ListItemProperty with SubSites

  Asked By: Jackie    Date: Oct 28    Category: Sharepoint    Views: 1450

I am creating a webpart that will show list data from subsites. I
thought that it would be nice if I could use the listitemproperty
control so that I could use the LinkTitle and other properties. For
example this is what I have.

ListItemProperty property = new ListItemProperty();
property.List = list.ID.ToString();
property.ListItemID = item.ID.ToString();
property.Property = field.InternalName;

I can confirm that the list id does exist however I think that when
the control is run that it is looking for this list in the current
site rather than a subsite. Therefore I get an error stating that the
list does not exist. Does anyone know of a way to get it to
look at a subsite?



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on ListItemProperty with SubSites Or get search suggestion and latest updates.