How to use System.Web.UI.UserControl in .net core class library project?

Natrix De 1 Reputation point
2021-11-12T17:15:05.327+00:00

I'm migrating .NET class library project to .NET CORE class library. In that I'm using web user control.
Here is the code snippet of gridview control from .Net class library.
148946-gridview.png

How Can I use this control in my .Net core version ?

Developer technologies ASP.NET ASP.NET Core
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2021-11-13T16:39:09.3+00:00

    There are no webcontrols and data binding is completely different. If you migrate from webforms, it’s recommended to use razor pages. Here is a tutorial on paging and sorting an html table.

    https://learn.microsoft.com/en-us/aspnet/core/data/ef-rp/sort-filter-page?view=aspnetcore-6.0

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.