Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have one textbox in a webform. I have to check if the text entered in that textbox is same as in the field in a table, how can I do that?
Posted
Updated 8-Feb-10 22:06pm
v3

Cannot you just compare the two strings (the one inserted in the text box and the one read from the table)?
What kind of 'table' are you referring to?
:)
 
Share this answer
 
If by table you mean database table, the answer is obviously SQL. select count(*) from myTable where myfield='mytext'

Of course, you should do this in your data layer and not build your SQL by string mashing.
 
Share this answer
 

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