All Questions
3,606 questions
1
vote
1
answer
67
views
When AJAX POST to C# httpPost medthod hasProblem
When I using jquery Ajax POST method to controller like:
var data = {
ID: '1',
name: 'TEST',
}
$.ajax({
type: "POST",
data: JSON.stringify(data),
dataType: &...
0
votes
2
answers
51
views
My ajax post request doesn't work in my ASP.NET MVC project
I'm trying to make a request to controller but it doesn't work. The first console.log() shows the correct id, so I think I passed it right in the html button. The id parameter is always 0 when it ...
1
vote
2
answers
78
views
.NET Core Ajax Call to Controller
This is my Index.cshtml:
@{
ViewData["Title"] = "Home Page";
}
<div class="text-center">
<h1 class="display-4">Welcome to SyncFusion</h1&...
1
vote
1
answer
87
views
pass list of objects to controller method using ajax .net core
I know similar questions have been asked before but none of the solutions worked for me.
I have a rather strange issue while passing list of objects to controller method using ajax.
It works when I ...
0
votes
2
answers
45
views
Posting a form from a partial view with jQuery
I've hit a wall while trying to do something and I hope someone can help me understand what I'm doing wrong. Here is the situation. I have a partial view with a form in it, and when I submit that form ...
0
votes
2
answers
100
views
How to get the property's name of an object using jQuery?
this is my form:
<form id="inventoryForm" action="/ManderalMatrix/AddManderalInventory" class="reactiveToButton">
<div class="row" style="...
1
vote
2
answers
335
views
ASP.NET Core 8.0 MVC Ajax, passing null into controller
I am trying to submit data into a controller method, in order to add the item to a repo.
I am doing this from a HTML (razor) page using AJAX jQuery.
The form serialises the data, and can read the ...
0
votes
2
answers
56
views
Problem in sending data to the controller through Ajax in ASP.NET MVC
I use this foreach:
foreach (var item2 in RItem.GetChildItems(item.ID_Ca))
{
<div id="@idc" class="accordion-collapse collapse" aria-labelledby="headingTwo2"
...
1
vote
2
answers
42
views
Cascading dropdown AJAX loop call
there is a part of my form in which a user can enter the building and room and click the add button if they want to enter another building and room. I am using AJAX to populate the rooms based on the ...
0
votes
0
answers
68
views
The requested resource does not support http method 'GET'. (jquery-3.7.1.min.js:2 POST http://localhost:51067/Api/Values/Insertogrenci 401
I got this error while creating my student adding page, why could it be?
The requested resource does not support http method 'GET'.
$.ajax({
type: 'Post',
url: "/Api/Values/...
0
votes
0
answers
75
views
When i load my PartialView html using jquery, an controller that i didn't call is called with 0 value id parameter
I have this View Edit.cshtml
@model ProdutoViewModel
@{
Layout = "_Layout";
}
<nav style="--bs-breadcrumb-divider: '>';" aria-label="breadcrumb" class="...
0
votes
0
answers
33
views
Can we parameterize jQuery ajax call for inserting data to database?
This is my simple code for inserting data to database and it's working fine. Table name is AccountMaster
function Insert() {
var Value = {};
Value.Id = $("[id*=hdnId]").val();
...
0
votes
0
answers
32
views
How can add drop-down from other table in my kendo grid
So I want to drop-down of the items that are present in other table and I want them in my kendo grid using asp.net Mvc so how can I do that ?
I tried to take 2 columns name in my main model from the ...
1
vote
1
answer
57
views
Change the path of images in JSON returned using AJAX
I want to change image whenever I choose the color the view so I write an Ajax to return the product of that color. Here the code :
$(document).on('change', '#colorId', function () {
GetImages(...
1
vote
1
answer
275
views
jQuery + C# (.Net 8): Passing an array of form files from Ajax to Controller
I'm working on a .Net 8 API and I need to pass form data which consists of files and other form elements to the controller via ajax.
I'm being able to pass a single file successfully, but the weird ...