我想如果用剃刀必須創建一個內聯如下:如何在剃鬚刀上使用內聯?
@(Model.ImageId == null ? "---" : @<text><img src='@(Url.Action(MVC.File.Get(Model.ImageId)))'/></text>)
我不斷收到錯誤:
Type of conditional expression cannot be determined because there is no implicit conversion between 'string' and 'lambda expression'
cannot convert from 'System.Web.Mvc.ActionResult' to 'string'
我怎樣才能解決這個使用內聯如果
雖然這可能會解決這個問題,但如果您提供了額外的解釋,這篇文章將會更有價值。 – 2014-10-18 17:32:23