I have code below, I need redirect to an other view page.
function patrListClick(PAT_ID) {
window.location.href = '<%: Url.Action("PatrList", "Patr", new { id = "_id_" }) %>'.replace('_id_', PAT_ID);
}
Unfortunately, I got compilation error.