Closed Andrioden closed 6 years ago
In all your examples you are rendering views in /Views folder, but new razor projects now store their razor pages in or /Pages (or /Area). How can I point to this? Is it possible?
string contentHtml = await _jsReportMVCService.RenderViewToStringAsync(HttpContext, RouteData, @"\Receipt", SomeObject);
Does not work when Receipt.cshtml is in /Pages Do work when Receipt.cshtml is in /Views
I tested some more, placing it in Pages/Shared/ works. Closing.
In all your examples you are rendering views in /Views folder, but new razor projects now store their razor pages in or /Pages (or /Area). How can I point to this? Is it possible?
string contentHtml = await _jsReportMVCService.RenderViewToStringAsync(HttpContext, RouteData, @"\Receipt", SomeObject);
Does not work when Receipt.cshtml is in /Pages Do work when Receipt.cshtml is in /Views