0

I had one register form , and I used to use it with my last asp.net mvc 2 project. Now I copied that register form into my asp.net mvc 3.

These are what I have copied from my last project :

  1. All jquery validation + Microsoft mvc ajax files
  2. Include all the file in source code
  3. Using Html.ValidationMessage in my view.
  4. Using [Required(ErrorMessage = "*")] in my model

But it still have no the validation script in my view.

What did I miss?

1 Answer 1

1

The Microsoft mvc ajax files have been deprecated.

Use the jquery validation scripts supplies with MVC3 instead.

Sign up to request clarification or add additional context in comments.

2 Comments

Do you mean, I have to change all the validation scripts that I had used in mvc2 to the new one in mvc 3, Matt Tew?
Only if you added custom code for validation, otherwise MVC generates the code for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.