Questions tagged as 'asp.net-core'

2
answers

Pass JSON.stringify to Controller

I'm trying to pass a table via JSON.stringify, in ajax, it's receiving the data perfectly, but I can not get into the controller. I'm passing this way: function enviarDados(produtos) { $.ajax({ method: "POST", url: '@Url.A...
asked by 23.08.2018 / 14:48
1
answer

How to add fields dynamically and link them to the viewmodel in Asp.Net

I have a 1: N relationship between Person and Contact. In my view, I can list all the contacts of a client when it is opened. Ineedtoimplementthe"New Contact" button so that when clicked, dynamically add the fields (Type of Contact, Contact,...
asked by 01.09.2018 / 12:47
1
answer

Photo conversion to base64 with error 414 (Request-URI Too Long)

I have the below code that does the conversion from a photo to base string64 sends the base via AJAX to the controller , however when you switch to the ajax, I return the following error: Photo conversion is done without errors. Isthere...
asked by 25.04.2018 / 16:59
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
2
answers

How can I access the database directly from my model class in an ASP.NET Core project?

In ASP.NET Core Mvc I get access to DbContext on the Controller through the _context property represented by my MvcNotaContext class see: private readonly MvcNotaContext _context; This way I can search the database in the cont...
asked by 20.11.2017 / 16:59
1
answer

Installing .Net Core SDK and RunTime from the Windows Terminal?

I need to install both the Runtime and the .Net Core SDK on the college machine, however, the only place I can put a general access proxy is in the Terminal, so I'd like to know if you can install those components via windows terminal? ps: I...
asked by 23.08.2017 / 14:37
1
answer

Ignore files at the time of sending to repository

I have a .net core project on bitbucket and I use visual studio 2017 to do the operations next to the repository. The problem is that even though I have not made any changes to the project, when I give rebuild it identifies 90 files on th...
asked by 28.12.2018 / 12:22
1
answer

"JsonResult" does not contain a constructor that accepts 0 arguments

I'm trying to return a JsonResult for my View, but it's returning the following error.    "JsonResult" does not contain a constructor that accepts 0 arguments Would you help me out? [HttpGet] public async Task<IActionResult> GetAl...
asked by 16.10.2018 / 19:07
2
answers

Limit query in index but not in combo

Good afternoon, In the company's ERP we have a query in the Index that is limited to 80 records. The problem is that in create we have combos that bring more than 150 records and also limiting to 80 records. How can I do to just leave in i...
asked by 05.10.2018 / 18:02
1
answer

Load table via AJAX

I'm trying to load data from a table, via ajax, like this: function buscaFornecedores(id) { var url = "/Produto/BuscaFornecedor"; $.ajax({ url: url, type: 'GET', data: { id: id}, success: function (data)...
asked by 07.08.2018 / 19:47