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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Mounnad MohamedRank #1,633 · 945 reputationPosted Dec 2, 2022, 8:29 AM EST
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
}
Vishal YelveRank #178 · 13.6K reputationPosted Dec 2, 2022, 9:11 AM EST
MVC -> Action method
public ActionResult Index() { DataTable dt = PivotTableView(); return View(dt); }Razor