Reputation: 13756
Is this fine or is there a different way?
<a href="Http://<%=Html.Encode(Model.Website)%>"><%=Html.Encode(Model.Website??"")%></a>
Upvotes: 0
Views: 63
Reputation: 60498
Seems fine to me, although you might want to check that the website doesn't already start with "http://" as well.
Upvotes: 2