title: Passing PaginatedList to ActionResult MVC C#
body: <p>I wanted to create a simple paginated search for my project. I'm having trouble with my 'advanced search' page, where I have several textbox inputs that the user would fill with the appropriate data (basically just several filters).</p>
  
  <p>My view is strongly-typed with the paginatedList class similar to the NerdDinner tutorial.</p>
  
  <p>In my controller, I wanted to pass the PaginatedList as a parameter since my view contains several bits of info from the PaginatedList model. The PaginatedList was null (as parameter), then I changed added the route; the object itself is not null anymore, but the values are.</p>
  
  <p>View:</p>
  
  <pre><code>&lt;%= Html.TextBox("Manufacturers", Model.Manufacturers) %&gt;
  &lt;%= Html.TextBox("OtherFilters", Model.FilterX) %&gt;
  //...etc etc
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>public ActionResult AdvancedSearchResults(PaginatedList&lt;MyModel&gt; paginatedList) {
  //...
  }
  </code></pre>
  
  <p>Any ideas? Am I even going about this correctly? Should I create a ViewModel that encapsulates the paginatedList info as well as the additional info I need instead?</p>