I am using sp2010. I have created a visual webpart in Visual Studio 2010. In this webpart I have created a sort of contact form with fields and a button. I have deployed this webpart to my sp site and add the webpart to a page. I can see the webpart, but if I try to save or check in the page I got this warning:

Error: This page contains content or formatting that is not valid. You can find more information in the affected sections. Important StatusStatus: Checked out and editable.

The reason of this warning is my asp.net validation are executed when I try to save the page. How can I fix this problem?


Your validation controls (and your button) should specify a validation group. http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.basevalidator.validationgroup%28v=vs.110%29.aspx

| improve this answer | |
  • I have already specified a validationgroup on all my controls in my custom form builded in a visual webpart programmatically(VS2012). Also my button. So what do I missing? – Ola Feb 26 '14 at 12:54

Check that particular user has permission in list

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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