0
我試圖插入一個img以用作Ajax.ActionLink。將Ajax.ActionLink作爲Img - 編寫代碼而不是img鏈接
這是代碼:
@Ajax.ActionLink("[replacethis]", "_Edit", "Account", new { id = "<#= UserId#>" }, new AjaxOptions() { UpdateTargetId = "subForm", InsertionMode = InsertionMode.Replace, HttpMethod = "GET" }).ToHtmlString().Replace("[replacethis]", "<img src=\"" + Url.Content("../../Scripts/ribbonfiles/ribbon/images/cadUsers.png") + "\" />"));
的問題是,我得到的所有打印的代碼,而不是得到了IMG作爲一個鏈接。
我錯過了什麼嗎? 非常感謝
是的,無法找到一種方法!我剛剛放棄了,我也在使用img鏈接。謝謝 –