Error: Reference to type 'IHtmlString' claims it is defined in 'System.Web', but it could not be found
I am trying to display some data from database into a grid and doing sorting & pagging on that grid. Rather than creating sorting & pagging manually, i found about WebGrid or GridView(old framework). I need similar grid that I can use for new .net6+
I am using visual studio 2022, asp.net core web app and .net 6 version.
i searched on google but said to either use older version of .net framework or use asp.net core MVC or adding reference inside system file
I dont want to use older version of .net or visual studio. I am not using MVC. I only have program.cs file in my project not system
@using System.Web.Helpers;
@{
var webGrid = new WebGrid(Model.ShapesList);
@webGrid.GetHtml()
}
i downloaded following nugets:
Microsoft.AspNet.WebPages
Microsoft.AspNet.Mvc
Microsoft.EntityFrameworkCore
Microsoft.EntityFrameworkCore.SqlSe
Microsoft.EntityFrameworkCore.Tool