tags:

views:

31

answers:

2

Is this fine or is there a different way?

 <a href="Http://&lt;%=Html.Encode(Model.Website)%&gt;"&gt;&lt;%=Html.Encode(Model.Website??"")%&gt;&lt;/a&gt;
+2  A: 

Seems fine to me, although you might want to check that the website doesn't already start with "http://" as well.

Eric Petroelje
+1  A: 

You could write a custom HTML Helper to do it for you.

RichardOD