Hi,
How to create a dynamic HTML table from C# list values and also to include links to the one column values
| ID | Name | Class |
| 1 | Abc | 2 |
| 2 | Xyz | 3 |
Thanks
Hi,
How to create a dynamic HTML table from C# list values and also to include links to the one column values
| ID | Name | Class |
| 1 | Abc | 2 |
| 2 | Xyz | 3 |
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal YelvePosted Dec 2, 2022, 2:11 PM
MVC -> Action method
Razor
Mounnad MohamedPosted Dec 2, 2022, 1:29 PM
Hello sathich,
We need more details about the technologie that you are using, i guess you are using Razor,
So it will be like :
@foreach(var item in items)
{
// put the columns here
}