Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

How we can get the Default Page of a Publishing Web using CSOM?

$
0
0

Hi Friends,

I am looking some way to get the Default Page of a Publishing web and set its ContentEditor and ContentOwner programatically using CSOM. But using CSOM I didn't find any help to do this. Can anyone help me into this.

I know the same is easily acheivable using Server side code like below:

PublishingWeb publishingWeb = PublishingWeb.GetPublishingWeb(objWeb);
SPListItem defaultPageItem = publishingWeb.DefaultPage.Item;...and then use code to set Content owner and all.

Thanks

Prabhat


Prabhat


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>