buka bidzina

buka bidzina

  • NA
  • 63
  • 6.1k

.Net Mvc ViewData

Mar 15 2019 5:44 AM
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<DataName>).Where(x=>x.Id==1)
 
Can i do that or is there a way to make this?

Answers (4)