Most voted "razor-pages" questions
Use this tag when the question refers to some resource, information or problem related to Razor Pages (Razor pages), ASP.NET Core MVC page creation feature.
Learn more…22 questions
Sort by count of
-
8
votes2
answers695
viewsWhat is ASP.NET Core Blazor?
Looking at the list of novelties found in Visual Studio, I came across something talking about ASP.NET Core Blazor, and apparently there’s almost nothing talking about, I found very little material,…
-
6
votes2
answers3207
viewsWhat are the differences between ASP.NET MVC and ASP.NET Razor Pages?
What are the differences and limitations between ASP.NET MVC and ASP.NET Razor Pages? I was very curious, because apparently the Razor Pages use the MVC standard, but without the need to use a…
-
5
votes4
answers1546
viewsTake specific value from a JSON or XML
Hello, I have an entire JSON inside a string and I need to turn it into an object in order to access some data... I’ll leave the code below to see if you can help me. My JSON is in that string:…
-
4
votes2
answers489
viewsASP.NET Core Isdevelopment
When creating a project with the dotnet cli dotnet new Razor -o Razorpagescontacts How do I change the environment variable to developer mode when running the application using dotnet run. Since in…
-
2
votes2
answers266
viewsASP.NET Razor Pages error while processing the request
I’m implementing an example using ASP.NET Razor Pages and when trying to access the page Index I have the error that there is error in the request. Error. An error occurred while Processing your…
-
1
votes1
answer357
viewsWhat is "Asp-fallback" for in ASP.NET MVC, Razor Pages?
I see some files like lines similar to this: <script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.2.0.min.js" asp-fallback-src="~/lib/jquery/dist/jquery.min.js"…
-
1
votes1
answer785
viewsOpen partial view by passing parameter
I am doing some tests on ASP . NET CORE 2.0 and I have the following question. I have an Index (View) that is displaying a list of `Users`. And from the click of a button `Edit`, I rewrite my…
-
1
votes1
answer39
viewsRelated entity on page Razor
I have a problem on a page Razor, I have a "Person" entity that has a relationship with the entity "Address" public class Pessoa { public int Id {get; set;} public string Nome {get; set;} public…
-
1
votes1
answer281
viewsHow to use Bindproperty in variables where names are dynamic in . net-core Razor pages
In Asp.net core Razor pages to pass data from a form declared as follows: [BindProperty] public int NMembro1 { get; set; } Where on the form side the tag input is stated as follows: <input…
-
1
votes0
answers44
viewsFull Description for a flag in a List/Ienumerable in C# Asp Net MVC
I have a list of records, where I have a Status (STS_BANCO) with values (A of Active and I of Inactive, P awaiting approval, and N analyze, among others ) where in the table I recorded "A,I,N,P",…
-
1
votes1
answer216
viewsHow to consume data from an api to show on the front end using Razor pages?
I’m a beginner in development. net core and I am developing an application that consumes data from an api and shows to users, but I can’t convert JSON to OBJECT and crunch everything into a…
-
1
votes0
answers18
viewsAuthenticate with Identity and/or Azure AD
Today the client application authenticates using Identity (.net core 3.1), however I am trying to authenticate also by Azure AD, adding an extra button on the login page where the user can login to…
-
0
votes1
answer296
viewsQuotation marks exiting in incorrect JSON format!
I’m creating a dictionary for JSON on Razor Pages, but the quotation marks ("), are coming out as " _Layout.cshtml (UTF-8) ... <body> ... <script type="application/ld+json">…
-
0
votes1
answer23
viewsFor with Datetime in Razor giving out of memory Exception
I am having out of memory error, being it caused by this Razor code in my cshtml file, and can’t identify where the problem is. @for(DateTime data = DateTime.Today.Date; data <=…
-
0
votes1
answer121
viewsPull Attribute setName from another class in the Agenda view using the Idservico foreign key with Razor Asp.Net mvc
I have a view Index which lists the schedules. In this list the agenda attributes including a foreign key appear IDServico, however, the list appears only the index of IDServico and I need the…
-
0
votes2
answers100
viewsRazor language regionality
I’m having a problem with Razor (using MVC 2.1 .Net Core) when generating the screen, as follows code below, this appearing the correct date in my Local development environment, but after Publish…
-
0
votes1
answer83
viewsPagemodel.Page() is a method, which is not Valid in the Given context
I’m needing to use a script from an Alert() in my project . NET core Razor, and when I add the line: Page.ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Hello…
-
0
votes0
answers76
viewsHow to update a Partial View through a Post?
I am using Asp.Net Core Razor pages and need to avoid using Javascript/Ajax/Blazor in my code to create something like a control iterative, adding to the page a form at each button click and trying…
-
0
votes1
answer15
viewsViewbag resetting when returning page on Razor Page
On the Onget of the page I load the Viewbag so: public IActionResult OnGet() { ViewData["SGP_GRP_IdGrupoProduto"] = new SelectList(grupoProdutoService.GetAll(), "GRP_Codigo", "GRP_Descricao");…
-
0
votes0
answers17
viewsHow to consult the Database via Ajax?
In Asp Net Core (I have 03 Models - I will describe well summarized): (Model 01) public class Estudante { public int EstudanteID { get; set; } public string EstudanteNome { get; set; } } (Model 02)…
-
-1
votes1
answer38
viewsDo not page the list of Products
I don’t know anything about Razor or Webmatrix. I took a project already done by another developer and I came across two problems, I can not locate where the SQL queries to list the products and…
-
-1
votes1
answer20
viewsLayout Logo breaks when exiting Index
Hello, my logo breaks after leaving the index, whatever the view(Edit,delet, etc.), it breaks, in the index is normal, I would like to know how to fix it, following the error and the code. I’m using…