This is a migrated thread and some comments may be shown as answers.

validation for duplicate values

0 Answers 195 Views
Validation
This is a migrated thread and some comments may be shown as answers.
charan
Top achievements
Rank 1
charan asked on 20 Jun 2012, 04:56 AM
hi,
I am using a text box.Depending up on the value entered in the text box,it will add to the panel bar.
1.If i dont enter any value ,it has to validate,I am able to validate this one.
2.If i enter already existing value in the panel bar,Then i have to validate for duplicate values.
                For this,I implemented like,In the controller i wrote the query to compare the entered value and returns the count.If the count value is "0" then it is new value and I am adding it to the panel bar using append method.but if the returned value is  "1" then That is already existing value and i have to pass the validation message for duplicate value.can u suggest me,how to implement this..

No answers yet. Maybe you can help?

Tags
Validation
Asked by
charan
Top achievements
Rank 1
Share this question
or