I am still figuring a lot out on Razor Pages for .Net Core and am a little stuck on something. I have added a new Razor Page:
Which lives in the Pages
folder:
On an existing page I have added an Input and a button to initiate a Search:
Which onClick calls the following Javascript function:
In the below screenshot, OnGetAsync method is hit when I put a breakpoint in, and can see the input value SearchValue is populated:
However I would expect the browser to then display the Search.cshtml
page. Instead the browser just remains on the current index.cshtml page.
Am I missing something or am I just doing this incorrectly?