hello everyone.I have viewdata and i want to loop through it like that way in my view.
@foreach(var item in ViewData["DataName"] as IList).Where(x=>x.Id==1)
Can i do that or is there a way to make this?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 15, 2019, 3:01 AM EDT
Madan ShekarRank #428 · 5.9K reputationPosted Mar 15, 2019, 1:50 AM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 15, 2019, 1:55 AM EDT
Posted Mar 15, 2019, 2:43 AM EDT