Forum Discussion
FFB01
Apr 27, 2020Copper Contributor
How to download rendered content of *.aspx SitePage using SharePoint Online Rest API
Hi We are trying to download rendered content of SitePages ( relativeURL: /SitePages/fileName.aspx) But we are getting non rendered content; For e.g.,: This is sample SitePage: Followi...
Will_Holland
Apr 27, 2020Iron Contributor
If you download the aspx page, you get the ASP controls that render contents (which is what you're experiencing).
If you're using Google Chrome, you can right click on the page and choose the "Save As" option. Other browsers likely have the same feature.
This will save the page as an HTML file, which you can then use to view the rendered content.
It will not, however, be pretty.
- brajmohanApr 30, 2020Copper Contributor
Will_Holland thanks for the reply. Actually we were wondering if there is any way by which we can request SharePoint to only give rendered content via ReST API.