I've written the following codes on page 1 :
location.href = '@Url.Action("Page2", "Home")?MyDetail=' + age;
Upon clicking "Submit" button, it'll go to Page2 and the link bar will display:
"http://localhost:1234/Home/Page2?MyDetail=20"
Question is, on page 2 of my view level, how can I "request query string" to get the parameter value (i.e. age) from the link by using javascript?
Other questions I've searched used certain regular expressions which I didn't understand but I was wondering if there is another method. If regular expressions need to be used, I'd appreciate if someone could explain how's it working.