101 reputation
1
bio website programmator.no
location Trondheim, Norway
age
visits member for 2 years, 10 months
seen Dec 10 '12 at 13:34

Apr
20
comment Getting the URLs of the SharePoint sites, lists and list views using Managed Client Object Model
This helped me, but it only works when site.get_serverRelativeUrl() is longer than "/". A more flexible solution is: if (site.get_serverRelativeUrl() == "/") return site.get_url() + web.get_serverRelativeUrl(); else return site.get_url().replace(site.get_serverRelativeUrl(), web.get_serverRelativeUrl());
Feb
6
awarded  Supporter
Feb
6
answered Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page