title: Create custom dynamic link on form that directs to another page
body: <p>I am attempting to create a list of items and when the user clicks on the link, it passes the tank serial number to the next form.</p>
  
  <p>Here is what I have so far but how do I make it linkable and pass a tank serial to the next page:</p>
  
  <p>My TankList in my controller:</p>
  
  <pre><code>    public ActionResult TankList()
      {
  
        var tanklist = new List&lt;string&gt;();
        tanklist.Add("1234566777");
        tanklist.Add("62523456345");
        tanklist.Add("8924545454");
        tanklist.Add("34556855433");
        tanklist.Add("933456643437");
  
        ViewBag.TankList = tanklist;
  
        return View();
      }
  </code></pre>
  
  <p>My TankList.cshtml:</p>
  
  <pre><code>@{
      ViewBag.Title = "Tanks Serial Numbers";
  }
  &lt;h2&gt;@ViewBag.Title.&lt;/h2&gt;
  &lt;h3&gt;@ViewBag.Message&lt;/h3&gt;
  
  &lt;p&gt;Please select the tank that you wish to administer:&lt;/p&gt;
  
  &lt;div&gt;
  
  
    @foreach (var list in ViewBag.Tanklist)
    {
      &lt;a href="/Forms/AsmeBasic/@list"&gt;@list&lt;/a&gt;
      &lt;br /&gt;
    }
  
  &lt;/div&gt;
  </code></pre>
  
  <p>I wanted to clarify that the above seems to work, at least it creates the link correctly:</p>
  
  <p><a href="https://i.stack.imgur.com/V3I6v.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V3I6v.png" alt="enter image description here"></a></p>
  
  <p>My AsmeBasic ActionResult in my controller:</p>
  
  <pre><code>    public ActionResult AsmeBasic(string tankserial)
      {
        ViewBag.TankSerial = tankserial;
  
        return View();
  }
  </code></pre>
  
  <p>The list is being populated but the serial number is not being passed. I'm getting a null value for tankserial.</p>