title: mvc3 how do I clear the submitted form values
body: <p>I am new to asp .net mvc3. I am trying to create a failrly simple blog comments section.</p>
  
  <p>I have a CommentsViewModel</p>
  
  <pre><code>public class CommentsViewModel
  {
      public CommentModel NewComment { get; set; }
      public IList&lt;CommentModel&gt; CommentsList { get; set; }
  }
  </code></pre>
  
  <p>The corresponding view is like</p>
  
  <pre><code>&lt;div id="CommentsArea"&gt;
  @Html.Partial("CommentsList", Model.CommentsList)
  &lt;/div&gt;
  @using (Ajax.BeginForm("Create",
                     "Comment",
                     new { id = Model.NewComment.detailsId, comment = Model.NewComment },
                     new AjaxOptions { UpdateTargetId = "CommentsArea" ,
                                       HttpMethod = "Post",
                                       InsertionMode = InsertionMode.Replace}))
  {
  &lt;div class="display-label"&gt;Add Comment&lt;/div&gt;
  &lt;div class="display-field"&gt;
      @Html.EditorFor(model =&gt; Model.NewComment.Body)
  &lt;/div&gt;
  &lt;input type="submit" value="Post" /&gt;
  }
  </code></pre>
  
  <p>Now when user enters Post button I want the "CommentsArea" to be updated with the new comments list and also the form values to be cleared with empty text.</p>
  
  <p>Here is the Post method:</p>
  
  <pre><code>[HttpPost]
      public ActionResult Create(int id, CommentModel newcomment)
      {
          var newsItem = m_db.NewsList.Single(news =&gt; news.Id == id);
          if (!string.IsNullOrWhiteSpace(newcomment.Body))
          {
                  newcomment.detailsId = id;
                  newsItem.Comments.Add(newcomment);
                  m_db.SaveChanges();
          }
  
          return PartialView("CommentsList", newsItem.Comments);
      }
  </code></pre>
  
  <p>Now when user clicks Post button the list gets updated properly,
  but the form values are not cleared. i.e. if I posted a comment "New Comments", the comments list gets updated with "New Comments", but that text remains inside the edit box of the form.</p>
  
  <p>How do I clear that text?</p>