I have been trying to pass parameter in a ASP.NET page to another page (in our web site) by redirecting using JavaScript (or jQuery, Ajax, Fetch, etc.) and catch this parameter on Load event of the redirected page via JavaScript. However, I am not sure if I can do this. Any idea?
News Page:
window.location = '/news/details?id=4';
Details Page:
$(function (id) {
console.log('Pass parameter: ' + id);
});
Any help would be appreciated...