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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Mar 15, 2019, 7:01 AM
Posted Mar 15, 2019, 6:43 AM
Jignesh KumarPosted Mar 15, 2019, 5:55 AM
Madan ShekarPosted Mar 15, 2019, 5:50 AM