Answers for "viewBag as a list"

C#
0

viewBag as a list

<td>@((ViewBag.data as ICollection<Person>).First().FirstName)</td>
Posted by: Guest on March-25-2020
0

viewBag as a list

<ul>
    @foreach (var person in ViewBag.data)
    {
        <li>@person.FirstName</li>
    }
</ul>
Posted by: Guest on March-25-2020

C# Answers by Framework

Browse Popular Code Answers by Language