razor-pages Questions
4
Solved
I am trying to convert a .NET Core 3.1 project to .NET 7.
When I use this in my Program.cs class:
app.UseEndpoints(endpoints =>
{
endpoints.MapRazorPages();
endpoints.MapControllerRoute(
nam...
Pyosis asked 5/12, 2022 at 16:47
9
I am beginner in ASP .NET Core 2.1 and working on project which is using ASP .NET Core 2.1 with individual authentication. I want to make my login page as my default route instead of Home/Index:
...
Gipsy asked 24/7, 2018 at 19:43
3
Solved
I'm currently refactoring a bloated MVC .NET Core app to a more simpler .NET Core app using Razor Pages and Mediatr.
In the MVC approach there's a BaseController that all controllers inherits from...
Decolonize asked 20/2, 2019 at 10:16
2
Solved
I have a ASP.NET Core razor page and model that uses query strings to filter search results and paging via GET.
Consider a user performed a search to arrive at this page:
https://localhost/Users?se...
Comptroller asked 29/8, 2020 at 22:22
2
I am having the following problem:
Exception: OAuth token endpoint failure: Status:
Body: {"error":"invalid_client","error_description":"AADSTS700025: Client is p...
Quintan asked 18/9, 2022 at 21:23
3
Solved
I have a Blazor server-side project that was set up with Individual Accounts. I scaffolded the AspNet.Core.Identity pages and wish to use a Blazor component inside one of the razor pages
by using t...
Begone asked 7/7, 2022 at 12:34
5
Solved
I am using ASP.NET Core 2 with Razor Pages and I am trying to have two forms with separate properties (BindProperty) on one page.
@page
@model mfa.Web.Pages.TwoFormsModel
@{
Layout = null;
}
<...
Ankh asked 30/1, 2018 at 7:59
2
Solved
Using Razor Pages ASP.Net Core, I have some functions that I'd like to use on every page. I guess this used to be done with App_Code, but that no longer seems to work in Core. How can I accomplish ...
Columbus asked 10/2, 2020 at 21:29
2
Solved
I have an asp.net core razor page where I have a simple form that asks for a user email address and a submit button. When I enter the email and click the submit button I'm always getting a 400 erro...
Noreen asked 25/4, 2019 at 1:43
13
Solved
In my Blazor server-side project, I need to close a pop-up menu by clicking outside the menu.
I use a simple If statement to show/hide the pop-up by triggering the onClick event. but there is no su...
Cutlip asked 22/4, 2020 at 15:54
2
Solved
Edited
I have an ASP.NET Core 2.1 website which I've scaffolded all of its Identity items. The scaffolding process created a layout file in this location:
/Areas/Identity/Pages/Account/Manage/_La...
Gennagennaro asked 3/10, 2018 at 18:27
3
Solved
I have a property that is bound to an input field:
<input id="name" asp-for="ContactName" name="ContactName" placeholder="Name" type="text" style="width: 200px !important;" autofocus>
[Bind...
Curl asked 28/8, 2018 at 12:53
2
Solved
I have set a filter to work upon a specific folder and all pages inside it. I need to access database using a claim. The problem is that I cannot seem to register my filter with DI on startup servi...
Akvavit asked 17/8, 2019 at 21:12
7
Solved
I have an ASP.NET Core 3.1 C# razor pages application that also uses some Blazor-serverside razor components. I have published it to IIS on Windows 2008 R2 Server.
But when browsing the site in Chr...
Tortilla asked 8/12, 2019 at 15:20
2
Solved
I want to pass in HTML to my partial view, like so:
@Html.Partial("_MyForm", "<button id='foo'>Process Data</button>")
This currently works, but passing in strings is inelegant. Prev...
Nibble asked 21/6, 2019 at 14:6
3
Solved
as per https://www.mikesdotnetting.com/article/343/improved-remote-validation-in-razor-pages
I followed the tutorial and implemented the PageRemote. However it does not work if applied to a propert...
Podgorica asked 14/12, 2019 at 13:48
3
Solved
I'm new to ASP.Net Core and trying to create an user authentication system. I'm using ASP.Net Core Identity user management. I have the below code for logging in an user.
/Areas/Identity/Pages/Acc...
Vermiculite asked 6/2, 2019 at 6:22
2
Where point razor folders "_framework" and "_content"?
_host.cshtml
<script src="_framework/blazor.server.js"></script>
<script src="_content/BlazorInputFile/inputfile.js"></...
Nomenclature asked 18/4, 2020 at 13:20
2
Within Razor View, I want to generate Url to specific Razor Page which is located in some Area.
I have already trying using this
@Url.Page("/Areas/Identity/Pages/Account/Manage/Orders", new { id...
Lakisha asked 6/5, 2019 at 20:4
3
I am attempting to redirect from a razor component to a razor page. If user is not authorized I want to redirect from current razor component to Login Razor Page.
I have redirect to login componen...
Calfskin asked 6/2, 2020 at 21:19
4
Solved
I have a Blazor app with a MainLayout page, which has a @Body to load the actual page content.
In my case Index.razor is loaded inside the MainLayout page.
Is there a way to call a method from th...
Nipping asked 26/9, 2019 at 18:51
3
In a server-side Blazor application (Core 3.1) have a Razor that accepts an identifier in the @page attribute. If the identifier supplied in the URL corresponds to an existing entity, the page will...
Araxes asked 24/12, 2019 at 21:21
2
Or am I required to use a controller? I have a Movies Class, a Genres Class, and a Media class that I will need to combine in a Model View so that I can have access to multiple models on my Razor P...
Assembly asked 2/5, 2019 at 18:9
3
Solved
In the menu of visual studio, there are two options, Razor Component, and Razor Page, If one adds @page directive on the top of the razor component, it has its own address.
So what is the differenc...
Hochman asked 18/1, 2021 at 11:27
1
I've created a Razor Class Library (RCL) to create a 'common UI' for several sites following the pattern from this article. But I'm having a problem with the _ViewImports.cshtml.
In my RCL, I have ...
Extra asked 4/1, 2021 at 4:29
1 Next >
© 2022 - 2024 — McMap. All rights reserved.