Created
April 27, 2011 18:14
-
-
Save vman/944823 to your computer and use it in GitHub Desktop.
Get HTML from page in SharePoint Client Obeject Model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ClientContext clientcontext = new ClientContext(sitecollection); | |
clientcontext.Credentials = Credentials; | |
var page = Microsoft.SharePoint.Client.File.OpenBinaryDirect(clientcontext, "/Sites/Vard/SitePages/Home.aspx"); | |
StreamReader reader = new StreamReader(page.Stream); | |
string pageHTML = reader.ReadToEnd(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment