Top "Razor-pages" questions

Apply to questions related to the Razor Pages Framework, which is a feature of ASP.

Where are the Login and Register pages in an AspNet Core scaffolded app?

In VS 2017, I created a new ASP.NET Core Web Application. On the second page of the wizard, I chose …

asp.net-core asp.net-identity razor-pages
Example AJAX call back to an ASP.NET Core Razor Page

I've found examples of have multiple handlers on a page and the associated naming convention (ie OnPostXXX) and 'asp-post-hanlder' tag …

c# ajax asp.net-core-2.0 razor-pages
How to redirect on ASP.Net Core Razor Pages

I am using the new Razor Pages in ASP.Net core 2 Now I need to redirect I tried this, but …

c# asp.net razor-pages
ASP.NET Core 2, button click with Razor pages without MVC

As someone pointed out in a comment, Razor pages doesn't need Controllers, like you're used to do in MVC. I …

c# asp.net-core asp.net-core-2.0 razor-pages
How to redirect to a asp.net core razor page (no routes)

Here I have a razor cs page: public IActionResult OnPost(){ if (!ModelState.IsValid) { return Page(); } return RedirectToPage('Pages/index.cshtml'); } …

c# asp.net-core razor-pages
ASP.NET Core Razor pages vs Full MVC Core

There has been a question at SO Why is Razor Pages the recommended approach to create a Web UI in …

asp.net-core-mvc razor-pages
.NET Core 3.0: Razor views don't automatically recompile on change

According to the documentation, Razor views should, by default, recompile on change on local environments for ASP.NET Core 3.0. However, …

c# asp.net-core razor-pages asp.net-core-3.0
This version of Microsoft.AspNetCore.All is only compatible with the netcoreapp2.1 target framework

When I try to publish my application to the web server after upgrading to .NET Core 2.1 from 2.0, I get this …

c# razor-pages .net-core-2.1
.Net Core 3.0 JsonSerializer populate existing object

I'm preparing a migration from ASP.NET Core 2.2 to 3.0. As I don't use more advanced JSON features (but maybe one …

c# asp.net-core razor-pages asp.net-core-3.0 system.text.json
Why is Razor Pages the recommended approach to create a Web UI in Asp.net Core?

Learning new things needs an investment of time, space and energy. I am currently learning Asp.Net Core MVC 2.0. This …

asp.net asp.net-core asp.net-core-mvc asp.net-core-mvc-2.0 razor-pages