title: "UpdatePanel" in Razor (mvc 3)
body: <p>Is there something like UpdatePanel (in ASPX) for Razor?</p>
  
  <p>I want to refresh data (e.g. table, chart, ...) automaticly every 30 seconds.
  Similar to clicking the following link every 30 seconds:</p>
  
  <pre><code> @Ajax.ActionLink("Refresh", "RefreshItems", new AjaxOptions() {
       UpdateTargetId = "ItemList",
       HttpMethod = "Post"})
  </code></pre>
  
  <p>Edit:</p>
  
  <p>I may should add that the action link renders a partial view.</p>
  
  <p>Code in cshtml:</p>
  
  <pre><code>&lt;div id="ItemList"&gt;
    @Html.Partial("_ItemList", Model)
  &lt;/div&gt;
  </code></pre>
  
  <p>Code in Controller:</p>
  
  <pre><code>    [HttpPost]
      public ActionResult RefreshItems() {
          try {
              // Fill List/Model
              ... 
  
              // Return Partial
              return PartialView("_ItemList", model);
          }
          catch (Exception ex) {
  
              return RedirectToAction("Index");
          }
      }
  </code></pre>
  
  <p>It would be create if the PartielView could refresh itself.</p>