protected void lstFirst_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
string First = lstFirst.SelectedItem.Text;
string family = lstSurname.SelectedItem.Text;
var query = from x in dc.tblEmp
where x.First.ToLower() == First.ToLower() && x.Family.ToLower() == family.ToLower()
Job = x.Job_Title
************txtJob.Text = query; ************
How do I bind data to Textbox?
I am selecting Surname and Firstname to fire query to get Job Title. I only want to display in textbox .
Can anyone help me find solution?
Thanks in advance
1 Answer, 1 is accepted
answered on 23 Jun 2010, 10:01 AM
You can bind RadTextBox in the same way as the regular ASP.NET TextBox control. Data-binding expressions are contained within <%# and %> delimiters and use the Eval and Bind functions. The Eval function is used to define one-way (read-only) binding. The Bind function is used for two-way (updatable) binding.
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items