Linked Questions

0 votes
1 answer
183 views

I am trying to pass the values from JavaScript string array variable into controller method. The method is called but the value is not being passed. Here is my example Controller [HttpPost] ...
Alevel's user avatar
  • 43
193 votes
9 answers
247k views

I am creating a small app to teach myself ASP.NET MVC and JQuery, and one of the pages is a list of items in which some can be selected. Then I would like to press a button and send a List (or ...
rodbv's user avatar
  • 5,264
60 votes
9 answers
158k views

Im trying to get a list of line items to a webpage using JSON, which will then be manipulated and sent back to the server by ajax request using the same JSON structure that arrived (except having had ...
Jimbo's user avatar
  • 23.1k
13 votes
5 answers
43k views

I am building a RESTful web-service in Java using Jersey 1.11, and have problems implementing a method which consumes a list of JSON-ised entities. The single instance method works fine. The error I ...
OG Dude's user avatar
  • 936
7 votes
2 answers
38k views

My ajax call looks like this $.ajax({ //actually approve or reject the promotion url: url, type: "POST", data: '{'+data.PromotionId+','+data.UserId+','+...
Pseudonym's user avatar
  • 2,072
4 votes
3 answers
12k views

possible duplicate Passing A List Of Objects Into An MVC Controller Method Using jQuery Ajax but my question is when I pass var things = [ {employee:'test',effectiveDate:'',expirationDate:'' }, ...
Neo's user avatar
  • 16.3k
2 votes
2 answers
6k views

I am having a simple issue which is taking way to long to figure out. I cant seem to get data from JS into MVC. JS: var stuff = [{a: 1, b: "Low"}, {a: 5, b:"High"}]; ...
Smartelf's user avatar
  • 879
0 votes
4 answers
15k views

I am using below stuff to post list of object to controller ajax post method. jQuery stuff: var values = []; values.push(rowData1); values.push(rowData2); values.push(rowData3); var data = JSON....
dsi's user avatar
  • 3,409
2 votes
1 answer
4k views

I have run into an issue attempting to pass an array of objects to an MVC3 controller/action. I've found several discussions on the web (including here at SO) but none have solved my problem. Here is ...
Chris's user avatar
  • 174
2 votes
1 answer
4k views

I'm trying to pass a List of objects back to my controller, but the List is null if/when it gets to the controller. Here is what I'm doing: Controller Action Signature [HttpGet] public ActionResult ...
user3517375's user avatar
3 votes
1 answer
3k views

This is similar to below but without Ajax. I am using JavaScript and XMLHttpRequest AJAX post data is null when it reaches the ASP.NET Core 2.1 controller Everything works good in ASP.NET MVC but I ...
Ziggler's user avatar
  • 3,500
-2 votes
2 answers
2k views

In my scenario i need to store some values in arrays of c# object and set some values to those. Then i need to store those values to database through ajax call. Please help me Any suggestions. I have ...
Chethan's user avatar
  • 99
0 votes
1 answer
4k views

Below is my Razor View <tr id="CGT_Row"> <td class="noGutter">@Html.TextBoxFor(m => m.clsCGT.CGT_Visit_Date, new {@id="dp1", @class = "input-sm text-center ...
user avatar
1 vote
2 answers
2k views

I pass a List(data) along with an ID(id) through ajax to the MVC Action(EditDesignTemplate). I get the count of the parameter data list as 0 in my EditDesignTemplate Action while I can see that the ...
parkourkarthik's user avatar
0 votes
2 answers
2k views

I have a object in my javascript with a object array inside it. I want to send it to my controller via a ajax call. But my list never seems to get populated in my controller. I make my machineList ...
Pedro Lopes's user avatar

15 30 50 per page