Hello,
What is wrong with this code. The code is finding the javascript and debug1 shown. If I remove the parameter p the code also founds mycontrol action and debug2 is shown.
View:
function method(p) {
alert("debug1");
$.post('../MyController/MyAction/' + p, function() {
alert("debug2");
$('#panel').empty().html('<img src="../Content/images/ajax-loader.gif" / >');
$('#panel').load('../Controller/Index');
});
}
Controller:
public ActionResult MyAction(int p)
{
// Some code
return null;
}