var Company = from com in objJobDAO.GetAllCompany() where com.Status = true && strCompanyIDs.Contains(com.CompanyID.ToString()) select new { com.CompanyID, PersonInfo = com.name + " ; " + com.address }; rddlJobCompanyJS.Items.Clear(); rddlJobCompanyJS.DataSource = Company; rddlJobCompanyJS.DataTextField = "PersonInfo"; rddlJobCompanyJS.DataValueField = "CompanyID"; rddlJobCompanyJS.DataBind();
select Name from YourTable
select Name + '-'+ Address as NameAddress from YourTable
NameAddress
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)