What url syntax should I be using to ensure controller actions are properly resolved in a jQuery ajax call? For example, the following syntax to invoke Method1 on HomeController works while running site in Visual Studio:
$.ajax({
type: 'GET',
url: "Home/Method1?lparam1=" + 1+ "¶m2=" + 2, // my problem
dataType: 'json',
cache: false,
success: function(){ alert("success");}
});
But when I deploy site on IIS, I get HTTP 404 telling me controller actions can not be resolved.
TIA.