Is this fine or is开发者_StackOverflow社区 there a different way?
<a href="Http://<%=Html.Encode(Model.Website)%>"><%=Html.Encode(Model.Website??"")%></a>
Seems fine to me, although you might want to check that the website doesn't already start with "http://" as well.
You could write a custom HTML Helper to do it for you.
精彩评论