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.
<td>
@Html.DisplayFor(modelItem => item.WebLink)
</td>
Thanks to Richard, heres the solution..
@{
var link = @item.WebLink;
if (link != null)
{
if (!link.StartsWith("http://"))
{
link = "http://"+link;
}
}
}
<a href="@link">@item.WebLink</a>