title: How can I automatically update a partial view?
body: <p>I'm trying to convert one of my MVC pages so that it automatically updates the data every 10 seconds.  Here is the method that calls the "main" view.</p>
  
  <pre><code>    public ActionResult Index()
      {
          return View("SomeView", new SomeViewModel { Rows = GetSomeInfo() });
      }
  </code></pre>
  
  <p>Here is SomeView</p>
  
  <pre><code>@Html.Partial("SomeView",Model)
  </code></pre>
  
  <p>and the partial view consumes the model</p>
  
  <pre><code>@model DatabaseConnectionMonitor.Models.TestDbModel
  @foreach(var row in @Model.Rows)......
  </code></pre>
  
  <p>Now how do I wire this all up so that the partial view automatically refreshes? There is a lot of (what appears to be outdated) methods of ahceiving this, and I want to follow the current best practice.  My research is telling me I should be using jquery unobtrusive ajax to do this.   </p>