Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi..!

I'm new to MVP winform developing. I have a small confusion. I want to compare the textbox value with db and return the matched data to label...

How can I do this coding?

Thank You
Posted
Comments
Tejas Vaishnav 20-Nov-14 6:03am    
what have you tried so far...
sajee1 20-Nov-14 6:09am    
My Data table Employee. It have ID(Auto Increment), EmpID,Name...

In my winform i have text box to enter Emp Value. name will return to label when button click.

In my model I have linq my data table.
my query is.. var v= from a in dt.Emps where v.EmpID=textbox1.text select a.name;

I don't know how to pass textbox1 value to query... can you help me...?

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