I want to use:
$.ajax({url:'controller/method ?startDate=' + startDate + '& endDate=' + endDate});
In the controller I have a method like this:
public PartialView GetChartDate(DateTime? startDate, DateTime? endDate){}
When I do this I end up passing null for endDate to the MVC method even though it has value. How do I pass multiple params to the MVC method?
Ideas and suggestions greatly appreciated !
If you actually cut-and-pasted your code, there’s a space between the ampersand and the variable.
Not sure if that is what does it, but check it out.