Lista teamsSportsInfos = GetList ();
ddList.DataSource = (från obj i teamsSportsInfos
välj nytt
{
ID = obj. ID,
FullName = obj.DisplayNamesSportsInfo.FullName
}) .ToList ();
ddList.DataValueField = ”ID”;
ddList.DataTextField = ”FullName”;
ddList.DataBind ();
|