Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I think I can ask this one simple enough, 2 text boxes, the first get's a number value, then what I need to happen is populate the second text box based on the number entered. first text box is from one table, the 2nd box is from a second table related which needs to populate that 2nd textbox depending on the value from the first box (onchange).

I can do this with drop downs, dropdown dependant, why not text boxes? the value from the first text box will only populate 1 andswer to the second, it's not like there will be a choice after the first number is entered...uugh

thanks for any thoughts here in advance.

Mac

[CP EDIT] the first text box will have a 9 digit number to add to a table, the second text box relates that number to a name so both will be inserted to a table without any misspelled names and it also verifies to the person entering that data they typed in the right 9 digit number when they see the name associated to that number is correct. if I used a drop down on the fist part, which I got working just to get a laugh, it has over 100 entries in that drop down.

I guess, if there's an easier way to have a person enter data into a textbox, after they tab or move to the next box, information appears to validate that one entry before submit, that's what really all needs to go on there...like I said before, the dropdown works, it's just that first dropdown is huge, the child dropdown will only have one choice after the first dropdown is picked. it's really for live verification of data input before submitting to a table. Easier way? I'm all ears
thanks folks
[/CP EDIT]
Posted
Updated 13-Jan-12 8:35am
v4
Comments
Kschuler 13-Jan-12 14:01pm    
Your question is not clear. Can you post the code you are working with and point out exactly what is going wrong with it? What data are you using?
Orcun Iyigun 13-Jan-12 14:12pm    
So basically you dont want AJAX Cascading Drop Down [^] option? Instead of a dropdown you want to accomplish it with textboxes? If yes, why would you want that? Please explain.
Orcun Iyigun 13-Jan-12 14:37pm    
Please use "Improve question" button or if you need to comment use "Have a question or comment" button. Do not use submit solution part unless you have a solution. thanks.

I think still you might do it with dropdownboxes. You might want to use a CascadingDropDownBox with an autocomplete extender. so this way you have a less selection of items and you can make sure that they entered the correct 9-digit value.
Here are some links:

LiCascading dropdown using jquery and json[^]
Cascading webdropdown from textboxes[^]
Cascading textboxes with autocomplete[^]

Godd luck,
OI
 
Share this answer
 
ok, being a newbie to the site, sorry for posting incorrectly here and I got the system now.
All or most of the comments are great, thanks to Orcun Iyigun for his thoughts and idea. That's perfect for what I need that form to do.
This time I DO mean to port the solution and I'll be moving on and watching here to give back to the community.

thanks all
Mac
 
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