SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

I created a new webapart and added it to a page. After adding, I was unable to save the page from editing mode, but if I remove my webpart and try to save, it's saving. Not sure what is the error.

Can any one let me know what might be the problem?

share|improve this question
Do you use JavaScript in the web part? Often this is the cause of no respond from ribbon! can you provide some code? – Andrew Adamich Feb 1 '13 at 22:21

You need to modify any validation code in your web part to ignore validation if the page is in edit mode.

You can do this server side using this code snippet in in the web-part. Make sure to add this using statment as well. using System.Web.UI.WebControls;

//if we are not in display mode disable all the validation controls to make sure saving the page the webpart is on works.
if (WebPartManager.DisplayMode != WebPartManager.BrowseDisplayMode)
    foreach (var validator in Controls)
        if (validator is BaseValidator)
            ((BaseValidator)validator).Enabled = false;
share|improve this answer
Agree! thanks for the link! Just for completeness, if you use much javascript, you can determine if you the page is in edit mode in the client side directly and remove any validation – Anatoly Mironov Feb 3 '13 at 15:46

Make sure the page is not locked or checked out by anyone else.

share|improve this answer

Sometimes I see this and am able to resolve it by going to site content / pages and manually checking out the page. I am not sure why this is a problem but I have had success with this workaround.

share|improve this answer

This seems like library version is on. So the page you edit will only reflect to admin user. Unless and until you check in the page other users can't see changes.

share|improve this answer

I have seen this before, my solution is that if your WebPart has any validator, you should fill some data to pass this/these validator(s) for saving your page. It often happens in SharePoint. Hope to help you.

share|improve this answer

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.