-2
@MvcHtmlString.Create("<a href=""" + blogComment .UserBlogUrl + """>" +  blogComment .UserBlogUrl + "</a>" )
tereško
  • 57,247
  • 24
  • 95
  • 149
Shiva
  • 1,359
  • 1
  • 15
  • 32

2 Answers2

2

Why are you not doing:

<a href="@blogComment.UserBlogUrl">@blogComment.UserBlogUrl</a> 

Instead?

Kirk Woll
  • 73,473
  • 21
  • 178
  • 189
1

Which version of .net are you on? Is it .Net 4.0. Have you considered using Html.ActionLink

Community
  • 1
  • 1
WorldIsRound
  • 1,524
  • 11
  • 15