Click here to Skip to main content
15,893,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all, i have a question:

How do i retrieve the description based on code that i type?

For example, i have:

Code Description
0001 A
0002 B
0003 C
0004 D
0005 E

i already can retrieve the code based on my database, but when i select the code "0001" for example, the description did not come out to the field, neither come out to the textbox that i want.

How do i display the description along with the code?

Thanks a bunch.
Posted
Comments
Pheonyx 6-Aug-13 4:15am    
How are you retieving the code? have you created any holder classes to store the data? you could requery the database with the selected code to pull back the description.
Thanks7872 6-Aug-13 4:53am    
Without code,how one will come to know wheres the problem? It will be better if you make things easier by updating your question with code you implemented.
ridoy 6-Aug-13 5:04am    
show code your examples.
jaideepsinh 6-Aug-13 5:50am    
Saw your code how you fetch data from table according to code.

1 solution

concate code with description
 
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