Hi @Rahul vyas,
For System.Web.UI
controls, it seems you use ASP.NET Web Forms application and it applies for .NET Framework, instead of .Net Core. ASP.NET Web Forms are not supported in .NET Core or .NET 8.
To achieve the similar behavior in .Net Core application, You could try to use ViewComponent or Partial View. Besides, you could also consider creating custom tag helper to render multiple html elements.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best regards,
Rena