Questions tagged as 'asp.net-core'

1
answer

Reason for different versions of DNX depending on OS

Some time ago I asked here about which really is the .NET Execution Environment (DNX). After reading the answer and the DNX Wiki I came to understand DNX as an interface between the virtual machine on which the managed code executes and the Op...
asked by 07.12.2015 / 14:30
1
answer

Pass parameter to another page

Within people, I own the accounts receivable table, where I am calling the page accounts receivable create, and the edit. So far, it's working perfectly. However, within accounts receivable, I have a select , where I already wanted to have...
asked by 03.07.2018 / 14:41
1
answer

How to add an already built view to a controller with asp.net core 2.0

I created a view (Razor Page) in an Asp.Net Core 2.0 project. As I build it from scratch and now I need to assign a controller to it. How do I do this?     
asked by 27.06.2018 / 18:43
1
answer

How to make an ASP.NET Core MVC application for Portuguese?

I would like to be able to make an application in Portuguese. I already did this with ASP.NET MVC 5 in a very simple way through a NuGet installation. But I did not find anything similar for the CORE version. I already used the configuration:...
asked by 04.06.2017 / 18:20
2
answers

Json Web Token - How to create a token that accesses only a given Controller or Action?

I'm implementing JWT in a .Net Core 2.0 application and would like to know how to restrict tokens access to certain Controllers.     
asked by 27.08.2018 / 15:31
1
answer

Error trying to create a Controller or ApiController

I created an empty Asp.Net Core 2.0 project (without scaffold). Model DDD and etc. But when I try to create my controller, it is inherited from ApiController or Controller, it gives error:    Controller is a namespace, but is used as a type...
asked by 18.06.2018 / 16:56
1
answer

Problem passing information from AJAX to Controller

I have the following ajax that takes the order code. At the moment I can get the order code, however, it sends null to controller var btn = document.getElementById("btnNumeroPed"); btn.onclick = function () {...
asked by 23.03.2018 / 20:09
1
answer

Consume SOAP from a rest in Asp.Net Core 2.0

I refined the question, trying to improve it for better understanding. 1) I created a WCF service, called OptOutService.svc. In this service I have an interface and a class that implements this interface, as below: [ServiceContract] public...
asked by 22.06.2018 / 15:07
1
answer

Difference between AddMvc vs AddMvcCore

In some examples I've been tracking, I've found two calls in Startup of applications in asp.net-core AddMvc: public void ConfigureServices(IServiceCollection services) { services.AddMvc() } AddMvcCore: public void...
asked by 22.04.2018 / 19:29
1
answer

How to return a message warning that registration already exists?

I have a method in CepController RegisterCep that before doing the registration makes some validations and between them, check if there is already a registration for that Cep. I would like to implement a warning to inform the user about the...
asked by 17.01.2018 / 14:48