SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible for me to change both the properties & the HTML of a content editor web part on a publishing page using SharePoint 2010's web services? If so, would you mind pointing me in the right direction?


share|improve this question
up vote 8 down vote accepted

Yes you can.

The contents of a Content Editor Web Part (CEWP) are stored like any other web part - in the web part properties.

You can see this if you Export the web parts .dwp file and open in a text editor, you will get something like

<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns:xsi="" xmlns:xsd="" xmlns="">
  <Title>Content Editor</Title>
 <Content xmlns="">
  <PartStorage xmlns="" />

The contents are in the Content element. (testing...testing...)

You can read and write the web part properties using the WebPartPagesWebService - see GetWebPart and SaveWebPart

share|improve this answer
That is what i needed. Thanks! – Markus Apr 25 '12 at 13:52

Actually YES (thanks Ryan)!

share|improve this answer
Actually you can - see WebPartPagesWebService.SaveWebPart – Ryan Apr 25 '12 at 13:46

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.