We are having this problem with a controller right now; the controller looks like this:
public class AccountsController:Controller {
public ActionResult List(int? page, int? pageSize, string keywords) {...}
}
We are posting to this page via jquery:
$.post("/myapp/Accounts/List",
{"page":0,"pageSize":10,"keywords":"asdf"},
updategrid,
"json");
...
function updategrid(result) {...}
Inside the action: Request.Form["keywords"] == "asdf", but keywords=="" and here I am at a loss. Why doesn't keywords have the value we want?