Questions tagged as 'razor-pages'

2
answers

ASP.NET Core IsDevelopment

When creating a project with dotnet cli / em>    dotnet new razor -o RazorPagesContacts How do I change the environment variable to developer mode when running the application using dotnet run . Since no Startup.cs I h...
asked by 20.12.2017 / 16:15
2
answers

What is ASP.NET Core Blazor?

Looking at the list of news that is in Visual Studio, I came across something talking about ASP.NET Core Blazor, and apparently has almost nothing talking about, I found very little material, and in English, but even using the translator was ver...
asked by 04.04.2018 / 05:01
2
answers

ASP.NET Razor Pages error processing request

I'm implementing an example using ASP.NET Razor Pages and when trying to access the Index page I get the error that hears error in the request.    Error.   An error occurred while processing your request. Request ID:   0HLA7N3BM0ANB: 000...
asked by 20.12.2017 / 15:53
1
answer

What 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 curious, as apparently the Razor Pages use the MVC standard, but without the need to use a controller , I do not even know if this is really it, and...
asked by 12.02.2018 / 21:27
1
answer

For with DateTime in Razor giving out of memory exception

I'm having the error out of memory, being caused by this Razor code in my cshtml file, and I can not identify where the problem is. @for(DateTime data = DateTime.Today.Date; data <= DateTime.Today.AddDays(7).Date; data.AddDays(1)) { @da...
asked by 25.01.2018 / 23:41
2
answers

Razor language regionality

I'm having a problem with Razor (using MVC 2.1 .Net Core) when generating the screen, as below code, it is appearing the correct date in my Local development environment, but after Publish appears in English in other environments, could you forc...
asked by 09.10.2018 / 20:36
1
answer

What is the "asp-fallback" in ASP.NET MVC, Razor Pages?

I see some files as 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" asp-fallback-test="window.jQuery" crossorigin="anonymous"...
asked by 01.03.2018 / 01:56
0
answers

Open partial view by passing parameter

I'm doing some testing 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 an 'Edit' button, I render my Partial View within a modal, where this Partial is...
asked by 05.08.2018 / 21:12
1
answer

Pull ServiceName attribute from another class in the Agenda view using the foreign key ServiceID with Razor Asp.Net mvc

I have a Index view that lists the schedules. In this list the calendar attributes include a foreign key IDServico , however, the list only appears the IDServico index and needs to appear the Service Name . > The code that...
asked by 03.08.2018 / 21:10
1
answer

Quotation marks coming out in the wrong JSON format!

I'm serializing a dictionary to JSON in Razor Pages, however the quotation marks (% with%), are leaving as " _Layout.cshtml (UTF-8) ... <body> ... <script type="application/ld+json"> @JsonConvert.Seriali...
asked by 10.01.2018 / 17:04