title: ASP MVC3 link to another View/Controller?
body: <p>What is the syntax for creating a link that navigates from one Controllers View to another? The following is code that is supposed to allow the user to navigate from the <code>Index.cshtml</code> of the <code>FollowUpItems</code> View to the <code>Details.cshtml</code> of the <code>Agent</code> View. I need to pass the value of <code>item.Key1</code> in order for the <code>Details.cshtml</code> page to know exactly who to display. </p>
  
  <p>I'm getting the following error and I have no clue what this means (I apologize for any lack on information, I am still very new to ASP MVC):</p>
  
  <p>'The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Int32' for method 'System.Web.Mvc.ViewResult Details(Int32)' in 'Monet.Controllers.FollowUpController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
  Parameter name: parameters ' </p>
  
  <pre><code>    &lt;td&gt;
          @Html.ActionLink(item.Key1, "Details", "Agent", new { id = item.Key1 })
      &lt;/td&gt;
  </code></pre>
  
  <p>Here is the Index() method header of the page I'm trying to navigate to: </p>
  
  <pre><code>    public ActionResult Index(string searchString, string sortOrder, string currentFilter, int? page)
      {
  </code></pre>