¡@

Home 

c# Programming Glossary: viewbag.languages

'object' does not contain a definition for 'X'

http://stackoverflow.com/questions/7652749/object-does-not-contain-a-definition-for-x

resolve it. I have a list generated in an MVC3 controller ViewBag.Languages db.Languages .Select x new x.Name x.EnglishName x.Id .ToList.. my page Razor I try to iterate through it foreach var o in ViewBag.Languages string img Lang o.EnglishName .png @ work @ but the reference.. this question You are using an anonymous object here ViewBag.Languages db.Languages .Select x new x.Name x.EnglishName x.Id .ToList..