I would like to pass the action name and controller name to the @Url.action call within a Javascript function as variables. Is there a method to achieve this?
function list_onSelectionChanged(e) {
var strActionName = "Map";
var strControllerName = "PMO";
$("#content").load("@Url.Action(strActionName,strControllerName)");
}
I was able to modify the script as follows:
Even simpler:
$("#content").load(url);
This allows a variable to be passed for the url.