title: Altering the ASP.NET MVC 2 ActionResult on HTTP post
body: <p>I want to do some processing on a attribute before returning the view. If I set the appModel.Markup returned in the HttpPost ActionResult method below to "modified" it still says "original" on the form. Why cant I modify my attribute in a HttpGet ActionResult method?</p>
  
  <pre><code>    [HttpGet]
      public ActionResult Index()
      {
          return View(new MyModel
          {
              Markup = "original"
          });
      }
  
      [HttpPost]
      public ActionResult Index(MyModel appModel)
      {
          return View(new MyModel
          {
              Markup = "modified"
          });
      }
  </code></pre>