title: create a dynamic link text and link in Html.ActionLink()
body: <p>I want to create `@Html.ActionLink(model.country, "Details", "Country")' in a dropdownlist as options..because later on, with different role access will see different link...</p>
  
  <p>Controller</p>
  
  <pre><code>    public ActionResult Index()
      {
          CountryList = db.CountryListTable.Select(x =&gt; x.countryName).ToList();
          ViewBag.ctr = CountryList;
          return View();
      }
  </code></pre>
  
  <p>View</p>
  
  <pre><code>    @foreach (var item in @ViewBag.ctr)
      {
              &lt;span&gt;@item&lt;/span&gt;
              &lt;span&gt;
              @* @Html.ActionLink((string)@item, "Details", "Country"); *@ @* this part throw error due to null *@
              &lt;/span&gt;
              &lt;br /&gt;
      }
  </code></pre>
  
  <p><code>@item</code> does not null...i dont know why it throw null value when encapsulate with <code>@html.ActionLink</code>...</p>
  
  <p>fyi, im using .netFramework 4.0, and MVC4...</p>
  
  <p>I'm quite new MVC n .netFramework</p>