title: Hyperlink in MVC3
body: <p>I have this in MVC3 Razor.. I want to make this a hyperlink..so users can click on it. Right now it just prints the text of the URL in the view.. thanks for your help.</p>
  
  <pre><code>   &lt;td&gt;
          @Html.DisplayFor(modelItem =&gt; item.WebLink)
      &lt;/td&gt;
  </code></pre>
  
  <p>Thanks to Richard, heres the solution..</p>
  
  <pre><code>  @{
         var link = @item.WebLink;
         if (link != null)
         {
             if (!link.StartsWith("http://"))
              { 
                 link = "http://"+link;
              }
         }
       }
  
          &lt;a href="@link"&gt;@item.WebLink&lt;/a&gt;
  </code></pre>