title: Best Practices in Razor Pages: Using AJAX or Handlers for post/get requests
body: <p>Generally speaking when you're doing a POST request you want to reload the page. Though not always. When using a GET method to retrieve data you may consider using AJAX. However I am relatively new to Razor Pages and ASP.net core altogether. I am being told we should always load the page. That since we are using Razor Pages it is not correct to use AJAX to submit anything to the code-behind. Otherwise whats the purpose of using Razor Pages.</p>
  
  <p>My concern is it leaves a bad user experience. If I want to run a report, retrieve the data, and show the data using a handler. I require the page to reload. If I use AJAX I require JSON but it doesn't require the page to reload. If I use a handler I can get back a model which I can use to display on the reloaded page without having to convert it to JSON. </p>
  
  <p>What is the best practice with Razor Pages? It seems like if you must reload every time we are going back in time to 2003. </p>