Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I created a new webapart and add 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 its 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

2 Answers 2

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

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.