-2
@MvcHtmlString.Create("<a href=""" + blogComment .UserBlogUrl + """>" +  blogComment .UserBlogUrl + "</a>" )
tereško
  • 58,060
  • 25
  • 98
  • 150
Shiva
  • 1,379
  • 1
  • 15
  • 32

2 Answers2

2

Why are you not doing:

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

Instead?

Kirk Woll
  • 76,112
  • 22
  • 180
  • 195
1

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

Community
  • 1
  • 1
WorldIsRound
  • 1,544
  • 10
  • 15