Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

dotnet core clickable row

<thead>
    <tr>
        <th class="col-sm-2">
            @Html.DisplayName("Report ID")
        </th>
        <th class="col-sm-3">
            @Html.DisplayName("Action")
        </th>
    </tr>
</thead>

@foreach (var item in Model.MyList)
{
    <tr onclick="location.href='@Url.ActionLink("Detail", "ReportController", new { Id = item.ID })'">
        <td>
            @Html.DisplayFor(modelItem => item.ID)
        </td>
        <td>
            @Html.ActionLink("Download", "Download", new { id = item.ID })
        </td>
    </tr>
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: rename join ta le in many to many 
Csharp :: asp.net store list in web.config 
Csharp :: c#, get a embedded resx file 
Csharp :: disable button netbeans 
Csharp :: lock a cache in asp.net 
Csharp :: c# list find null 
Csharp :: c# on alt + f4 
Csharp :: c# nunit assert.contains 
Csharp :: c# Class instance 
Csharp :: Handling Collisions unity 
Csharp :: c# extension method example 
Csharp :: camera is rendering black screen unity 
Csharp :: pcamera 
Csharp :: entity framework linq join 2 tables c# 
Csharp :: mongodb truncation exception c# 
Csharp :: c# simplified if statement 
Csharp :: is list sequential C# 
Csharp :: add dynamic value in startup file in .net core api 
Csharp :: générer un nombre aléatoire en c# 
Csharp :: c# show existing form 
Csharp :: how to use a round image unity 
Csharp :: Open API support for ASP.NET Core Minimal API 
Csharp :: convert relative path to physical path c# 
Csharp :: make all variables nonserizlized unity 
Csharp :: SETTING UP ARRAY FOR TEST SCORES IN C# 
Csharp :: int to binary string with 4 characters 
Csharp :: Service Locator, Unity 
Csharp :: telerik mvc grid scroll 
Csharp :: c# azure get vm get cpu usage 
Csharp :: asp.net core relative file path within console app 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =