Posted on: 2/21/2014 6:46:41 AM | Views : 610

HI! i have a drop down in asp.net i want to bind it with a table which has the following fields: 1.training_id 2.training_title 3.start_Date 4.end_Date   what i want to do is to bind the dropdown data text field with three field that is 2,3, and 4. here is my code
var category = (from c in trg.tblTrainings select new { c.training_id, c.training_title,c.start_date,c.end_date }).ToList(); trg_drpdwn.DataValueField = "training_id"; trg_drpdwn.DataTextField = "training_title".....????; trg_drpdwn.DataSource = category; trg_drpdwn.DataBind(); Please tell me how to bind three table's fields with trg_drpdwn.DataTextField. Thanks in advance

Go to the complete details ...