Load UserControl .ascx with Asp.Net Core WebApplication - C#

  • Thread starter Thread starter César Augusto Leitão
  • Start date Start date
C

César Augusto Leitão

Guest
I have the following scenario. in a WebForm application, it loaded a UserControl (.ascx) and added it to a Panel and rendered it on a WebForm.aspx page. Now I need to load this UserControl.ascx and render it in an Asp.Net Core Web Application project. It's possible?

My current scenario (Asp.Net Web Application)


Control ctrl = LoadControl("MyControl.ascx");
Painel1.Controls.Add(ctrl);

Implementation in c# asp.net core (Asp.Net Core Web Application )

???

Thanks




Cesar - MCP

Continue reading...
 
Back
Top