Click here to Skip to main content
15,881,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi ,


i have binded the autocompete values to the textbox.i will get when user type s then it will show

ramu-1547-14-14 here i have to do only bind ramu to the text box could any one suggest me.


Regards,

Rahul.
Posted
Comments
Aravindba 20-Dec-13 5:20am    
ramu-1547-14-14 is one word in u get ? or u concate the numbers with name ? after select this value,try to spilt before add in iteams

1 solution

C#
string[] splittedValues = txtBox.Text.Split('-');
txtBox.Text = splittedValues[0]; // It will assign 'ramu' to TextBox.
 
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