Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

viewBag as a list

<td>@((ViewBag.data as ICollection<Person>).First().FirstName)</td>
Comment

viewBag as a list

<ul>
    @foreach (var person in ViewBag.data)
    {
        <li>@person.FirstName</li>
    }
</ul>
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# destroy function...unity 
Csharp :: Disable Debug.log Unity 
Csharp :: c# list remove by index 
Csharp :: c# make a automapper 
Csharp :: c# object list to joined string 
Csharp :: onmousedown not working unity 
Csharp :: convert string to decimal c# 
Csharp :: jagged array to 2d array c# 
Csharp :: rotation 
Csharp :: csharp bubble sort 
Csharp :: c# webapi return file 
Csharp :: serenity frameword order column 
Csharp :: how to update model in entity framework db first approach 
Csharp :: how to check type in c# 
Csharp :: batchblock timeout 
Csharp :: asp c# page scroll position change after postback 
Csharp :: c# get index of item in list 
Csharp :: Unity Object rotation along any axis 
Csharp :: how to exit winforms application and shutdown pc in c# 
Csharp :: asp net c# browser cursor wait 
Csharp :: Send Hotmail, Outlook, Office365 Email using SMTP C# .NET 
Csharp :: sto playing audiosource 
Csharp :: wpf get name of clicked element 
Csharp :: c# convert string to array 
Csharp :: dapper get list 
Csharp :: net user add ne user windows 10 
Csharp :: vb.net drag window without titlebar 
Csharp :: commit help 
Csharp :: count number of specific characters in string c# 
Csharp :: linq select 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =