title: How do I redirect to the next page after pressing the submit button?
body: <p>I am creating a site with ASP.NET MVC 4 and C#. The main page is a search bar with a submit button with the label "search". I want the user to be able to enter a musical artist and press the "search" button. The site should then go to a "results" page with the results.</p>
  
  <p>I am having trouble getting to the results page after pressing the search button.</p>
  
  <p>My view Index.cshtml form looks like this:</p>
  
  <pre><code>&lt;form method="post" class="form-inline"&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-1" style="min-width:300px"&gt;
              &lt;input type="text" name="Artist" class="form-control box-shadow--4dp" placeholder="Artist Name" /&gt;
          &lt;/div&gt;
          &lt;div class="col-md-2"&gt;
              &lt;input type="submit" class="btn btn-default box-shadow--4dp" value="Search" /&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And my HomeController.cs looks like this:</p>
  
  <pre><code>namespace Task2.Controllers
  {
      public class HomeController : Controller
      {
          public ActionResult Index()
          {
              return View();
          }
  
          // edit
          [HttpPost]
          public ActionResult Index(string Artist)
          {
              return RedirectToAction("Result", "Home");
          }
  
          public ActionResult Contact()
          {
              ViewBag.Message = "For more information you can contact me using the form below.";
  
              return View();
          }
  
          public ActionResult Result(string Artist)
          {
              ViewBag.Message = Artist;
              return View();
          }
      }
  }
  </code></pre>
  
  <p>So to summarize, how can I cause the submit button to redirect the user to the Results page with the results?</p>