I am trying to render an Ascx page from an MVC View Rendering in Sitecore. For example, in old Web Forms / Ascx to put placeholders you'd use
<sc:Placeholder runat="server" key="placeholder-key" />
the Mvc equivalent is
but I want to do the MVC equivalent of
<sc:Sublayout runat="server" Path="widget.ascx" DataSource="Content" Cacheable="True" VaryByData="True" />
Or if I can't, is there a way to render the in my MVC cshtml layuout.
The reason is because I am trying to convert an old .ascx web page to a cshtml one. Any help please?