Click here to Skip to main content
15,898,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In Form1 user enter the car names e.g(HONDA, TOYOTA, BMW....) which saves in the Table1. In the Form2 user enter the colour e.g(BLACK, WHITE, SILVER which saves in the Table2. In the Form3, i want when user try to write wrong spelling " HONDX "in the textbox, new help form which have data from Table1 user select from there then go to the other textbox.
But if user write the correct spelling " HONDA " in the text box no help form shows just go to the other text box.
Please tell me how I validate TextBox data from the Database table.
Posted
Updated 9-May-10 4:40am
v3

1 solution

I would load the available manufacturers into a list and compare the contents of the textbox to the list. If it doesn't find a match, an error message is generated. Of course, you could eliminate that process altogether by providing a drop down that contains what's in the list, and allow the user to pick from the drop down, thus eliminating the chance he could enter invalid data.
 
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