views:

82

answers:

2

Hello,

Its my first time with asp.net MVC 2. Im came from asp.net webforms.

I would like to know how to build a form to add products (for instance) to a database with client and server validation.

Do you have any url useful that explains this?

Thanks in advance. Best Regards. Josema.

+1  A: 

This is a very broad question. There are many tutorials out there on how to perform this. For example as far as validation is concerned you might look at DataAnnotations which allow you to annotate your view models with attributes which will be used to perform server side and client side validation (if you enable it). For more advanced scenarios you could also take a look at FluentValidation.

Darin Dimitrov
+1  A: 

Try looking through Jon Galloway's MVC Music Store, it's a demo application that might help you. Otherwise the MVC2 articles on Scott Guthrie's Blog will also give you the basics.

Nick