Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique validation
Message
 
 
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:
01560685
Views:
49
>>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

Thanks a lot, looks exactly like what I am looking for. I am going to try them.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform