title: How to call controller from the button click in asp.net MVC 4
body: <p>Please i am working on MVC website, i have a Search page and another search form on index page. I want to call the the same search page controller when i click the search button from index page. Below is how my button is on the index page.</p>
  
  <pre><code>    &lt;span class="input-group-btn"&gt;
        &lt;button class="btn btn-info" type="button" id="addressSearch"   
            onclick="location.href='&lt;%: @Url.Action("List", "Search") %&gt;'"&gt;
       Search&lt;/button&gt;&lt;/span&gt;
  </code></pre>
  
  <p>List is my search Action from search page and Search is the controller name. When i click the button above, it returns url in the form </p>
  
  <p><a href="http://localhost:52050/">http://localhost:52050/</a>&lt;%:%20/Search/List%20%>  </p>
  
  <p>Showing bad request . I am suspecting its from my Routing , I am not sure how to archieve this, Please any help would be appreciated .</p>
  
  <p>Below is how my Routing is </p>
  
  <pre><code> routes.MapRoute(
                  name: null,
                  url: "Page{page}",
                  defaults: new { Controller = "Search", action = "List" }
                  );
  
  
              routes.MapRoute(
              name: "Default",
              url: "{controller}/{action}/{id}",
              defaults: new
              {
                  controller = "Home",
                  action = "Index",
                  id = UrlParameter.Optional
              }
              );
  </code></pre>