I have the following view , which contains an Ajax.BeginForm:-
@using (Ajax.BeginForm(\"ChangeDevicesSwitch\", \"Switch\", new AjaxOptions { InsertionMo
in my case, following method was worked
function OnSuccess(data) { var json; if (data.responseText instanceof Object) json = data.responseText; else json = $.parseJSON(data.responseText); if (json.RedirectUrl) window.location.href = json.RedirectUrl; }