Hi
I want to insert Checkbox in each row . Below is the code
C#
StringBuilder htmlTable = new StringBuilder();
htmlTable.Append("");
htmlTable.Append("" + Count.ToString() + "");
htmlTable.Append("" + colum.BookTitle + "");
htmlTable.Append("" + colum.Name + "");Thanks

Pasang TamangRank #449 · 5.6K reputationPosted Dec 30, 2022, 6:55 AM EST
Hi Ramco,
Check the code example below. This code example is based on ASP.NET MVC
@using System.Text @using BootstrapModal.Models @{ ViewBag.Title = "About"; var modalList = new List(); for (int i = 1; i "); htmlTable.Append(""); htmlTable.Append($""); htmlTable.Append("Id"); htmlTable.Append("Title"); htmlTable.Append("Name"); htmlTable.Append(""); foreach (var book in modalList) { htmlTable.Append(""); htmlTable.Append($""); htmlTable.Append("" + book.Id.ToString() + ""); htmlTable.Append("" + book.Title + ""); htmlTable.Append("" + book.Name + ""); htmlTable.Append(""); } htmlTable.Append(""); } @Html.Raw(htmlTable)public class BookModal { public int Id { get; set; } public string Title { get; set; } public string Name { get; set; } }Regards,
Pasang