Reputation
Top tag
Next privilege 125 Rep.
Vote down
Badges
1
Newest
 Supporter
Impact
0 people reached

  • 0 posts edited
  • 0 helpful flags
  • 5 votes cast
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