How to load partial razor page into razor view
问题 I am trying to replace my view components with razor pages but it seems that it's not possible to load a partial razor page because a model is expected to be passed yet it is my understanding that the model for a razor page should be declared in the OnGetAsync method. Here is my code... Razor Page @page "{id:int}" @model _BackgroundModel <form method="POST"> <div>Name: <input asp-for="Description" /></div> <input type="submit" /> </form> Razor Page Code-Behind public class _BackgroundModel :