I'm trying to display the another view in a current page.
In ASP.NET MVC (running on the full/classic .NET framework), it was possible like this:
return View("view name", MyModel);
As the method of ASP.NET Core, I found this article:
How to return a different view with object in Razor Pages?
Here's its alternative method.
return new RedirectToPageResult("view", MyModel);
However, the first method does not change the URL in the address bar, while the following method does change the URL.
Does anyone know how to do it in ASP.NET Core MVC without changing the url?


