Ognjen
Ognjen

Reputation: 1195

validation instruction

What are the ways to validate form data (in ASP.NET MVC and C#) such as input fields. I try jquery validator but failed. Are there other ways?

Upvotes: 1

Views: 289

Answers (4)

Martin
Martin

Reputation: 6991

I recommend use MVC 2 RC, jQuery and jQuery.validate plugin. How it works you can read on Phil Haack's blog. Please, be careful. Phil wrote article in time of MVC 2 Beta. About issues with implementation on RC you can read here: ASP.NET MVC 2 RC client side validation not working.

Upvotes: 0

Robert Harvey
Robert Harvey

Reputation: 180787

ASP.NET MVC 2.0 beta has jQuery validator integrated. Might be worth a look.

Upvotes: 0

Ta01
Ta01

Reputation: 31610

MVC v2 has DataAnnotation Validation Support, see Scott Gu's post on this topic.

Upvotes: 1

Jacob Mattison
Jacob Mattison

Reputation: 51052

Here are several useful tutorials on ASP.NET MVC validation.

Upvotes: 1

Related Questions