Can I exclude the valudation rule for the ID property? Right now I get the following validationerror message when I submit the form:
- The Id field is required.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From http://xval.codeplex.com/Thread/View.aspx?ThreadId=54212
I think you’re talking about server-side validation here. Remember that xVal’s key job is enabling client-side validation, where this problem doesn’t occur. On the client, you won’t create a textbox for “ID” (because you wouldn’t want the user to edit it directly) – at least not during the creation phase – so the client-side validator would ignore the ID property, not attempting to validate it because there’s no input control to validate.
On the server, the behaviour will vary according to which validation runner you’re using.