validation for duplicate values

1 posts, 0 answers
  1. charan
    charan avatar
    29 posts
    Member since:
    May 2012

    Posted 19 Jun 2012 Link to this post

    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..
Back to Top