title: Partial View using a Model, update it with Ajax
body: <p>I have a Partial View that uses a Model.
  The Partial View is empty, except for a textbox and a button.</p>
  
  <p>The user will type a value into the text box and click the button. </p>
  
  <p>I want to use <strong>Ajax</strong> to take the value typed in the textbox, and perform a search on the database. Then with the data returned, update the Partial View with using the Model.</p>
  
  <p>My code so far -</p>
  
  <pre><code>&lt;input id="searchValue" type="text" /&gt;   
  &lt;input id="searchButton" type="submit" value="submit" /&gt;
  
  &lt;div&gt;
  @if(Model != null)
  {
      foreach(var stuff in Model.ListOfStuff)
      {
          &lt;li&gt;@stuff.value&lt;/li&gt;  
      }
  }
  &lt;/div&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated. Thanks!</p>