Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unique validation
Message
De
27/12/2012 02:56:41
 
 
Information générale
Forum:
ASP.NET
Catégorie:
MVC
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01560641
Message ID:
01560666
Vues:
77
This message has been marked as the solution to the initial question of the thread.
>Hi everybody,
>
>I checked a few discussions on unique validations in StackOverflow (too bad I can not add comments to them :() and I am still unsure of the best way to proceed.
>
>I see I am missing unique constraints in the table which I am going to add. But I think I also need a unique validation attribute.
>
>I am wondering what is the right way to implement unique validations in MVC application?
>
>Thanks in advance.

Haven't tried it but I'd go with the the 'Remote' atttribute. Example here: http://www.tugberkugurlu.com/archive/check-instantly-if-username-exists-asp-net-mvc-remote-validation
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform