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?