title: How can I make a button trigger an AJAX call
body: <p>I have a textbox and a button.</p>
  
  <p>After entering text I want to click the button such that a AJAX get's made.
  The AJAX call will grab the text and update it on a existing JSON file.The JSON file will get saved. This is my objective i.e. having a updated JSON file.</p>
  
  <p><img src="https://i.stack.imgur.com/RvaM8.jpg" alt="enter image description here"></p>
  
  <p>So my question is am I on the right track here. I am new to asp.net and want to confirm that these steps are possible. Is there a easier way to trigger an AJAX call with a click?</p>