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...
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,...
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...
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...
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...
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...
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...
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...
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...
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)...