Click here to Skip to main content
15,887,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello sir, may i know how to pull out the words & its definition from db(for my online-dictionary project), after the text box validation using customvalidator control. I need some coding to validate the 'word' typed in txtbox with the one in the database.
Posted

1 solution

Follow this[^] link to learn how to use the CustomValidator control. In your server validation code, write code to access your database and compare the word typed in the textbox to the entries in your database. I doubt you can do this with client side validation.
 
Share this answer
 
Comments
Joris Janssens 21-Jul-11 17:34pm    
With AJAX it is possible to use client side validation. Create a generic handler that makes the database calls and writes the results to the outputstream and put in the client side method a synchronous(!) AJAX call to that handler.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900