Passing object(s) to a Controller Action
- by Nicholas H
I'm attempting to use jQuery to do a $.post() to an MVC controller action. Here's the jQuery calls:
var _authTicket = { username: 'testingu', password: 'testingp' };
function DoPost() {
var inputObj = { authTicket: _authTicket, dateRange: 'ThisWeek' };
$.post('/MyController/MyAction', inputObj, PostResult);
}
function…