title: Posting to my site, the page reloads and shows Raw HTML (ASP.NET MVC)
body: <p>On my website, when I post a comment, the comment is saved to the database and then the page reloads to show raw HTML rather than the rendered page.  There's no errors, Global.asax isn't called.  When I manually refresh the page, the page is rendered properly.  Any idea where to start why the refresh doesn't work?</p>
  
  <pre><code>    [HttpPost]
      public ActionResult Index(string txtCode, string txtName, string txtMessage, string txtEmail)
      {
          List&lt;string&gt; sRules = new List&lt;string&gt;();
  </code></pre>
  
  <p>and at the end</p>
  
  <pre><code>        oPackage = ProcessPage();
  
          if (txtMessage + "" != "" &amp;&amp; sRules.Count == 0)
          {
              oPackage.DisplayCommentsSuccess = true;
              Misc.InsertComment(Misc.GetConn(), "EXAMPLE.COM", Request.UserHostAddress, txtMessage, sCat, sPage, txtName, txtEmail, Request.
          else
          {
              oPackage.DisplayCommentsSuccess = false;
          }
  
  
          oPackage.Messages = sRules;
  
          return View(oPackage);
      }
  </code></pre>
  
  <p>ProcessPage rebuilds the page.</p>