TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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?
Reply
Answers (
4
)
Assigning a field from a database to a JSON object.
Why it is retturning this?