asp.net - Validation for a unique property -


Does anyone know how to verify for a unique property or can point me to an example?

Say I have a grid of films and I make an edit or a single if I set the text box 'title' for 'a really cool movie', I will be sure how to validate Will there be any movie with this title already in the database? Will I use a custom delidator? I tried to do this, but when I was checking a text in the text box, it was coming in the form of an empty string.

Thank you!

Mr. Cricket

Yes, this is a perfect scenario for a custom validator. . However, unless you are using AJAX, they only confirm when a post-back occurs. Without knowing more about your exact setup, I can provide all this.


Comments