how to display embed and link in razor?
i'm trying to find out how to display youtube enbed and youtube link in razor i'm using this @html.raw(item.MyUrl) and it is diplaying the "embed " data but i'm trying 开发者_C百科to find out (if can do ) a way to display also the youtube link (look like this(http://youtu.be/9hUy9ePyo6Q) i have tryed decode and encode they also work in enbed but not by the Url link @Html.Raw(HttpUtility.HtmlDecode(item.MyUrl)) @@ @Html.Raw(HttpUtility.HtmlEncode(item.MyUrl)) Thanks
did you try to use the item.MyUrl directly instead of using html.raw() ??
精彩评论