title: Render PartialView from background thread using SqlDependency
body: <p>I'm trying to update a PartialView when a register is updated in DataBase. I'm using SqlDependency and the event rise properly when the change happens.</p>
  
  <pre><code>SqlDependency.OnChange += new OnChangeEventHandler(sqlDependency_OnChange);
  </code></pre>
  
  <p>Method:</p>
  
  <pre><code>Private void sqlDependency_OnChange(object sender, SqlNotificationEventArgs e)
      {
          System.Diagnostics.Debug.WriteLine("Ok");
  
          UpdateView();
  
      }
  </code></pre>
  
  <p>And the method that is called:</p>
  
  <pre><code> public ActionResult UpdateView()
      {
          try
          {
              //Blablabla...
              //Business logic...
              //Blablabla...
              model = 2;
  
              return PartialView(model);
          }
          catch (Exception ex)
          {
              return PartialView(0);
          }
      }
  </code></pre>
  
  <p>I receive every time a change is made the Lines in the OutputWindow, the method UpdateView() exits with no errors, but the PartialView is not render any more.</p>
  
  <p>The View:</p>
  
  <pre><code>@model int
  &lt;h4&gt;You have @Model points.&lt;/h4&gt;
  </code></pre>
  
  <p>What I'm doing wrong?
  Is it because I'm requesting the Render from a different thread? 
  Can I Update a View from server side when an event occurs?
  Thanks for your help!</p>