Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique validation
Message
From
27/12/2012 02:56:41
 
General information
Forum:
ASP.NET
Category:
MVC
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01560641
Message ID:
01560666
Views:
76
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform