0

Using ASP.NET MVC 5, I'm having trouble reading the param data I am sending from my filedrop jquery code into my controller.

Here is my .cshtml filedrop code:

enter image description here

And here is my Controller code, showing that param1 is being passed as null:

enter image description here

SweetTomato
  • 509
  • 1
  • 6
  • 16

1 Answers1

0

You can try defining a variable that will hold that the value of attribute. like this

var idValue = $('id').val();

And then pass this variable to the data.

data: { params: idValue }
HarrY
  • 607
  • 4
  • 14