我想如果用剃刀必须创建一个内联如下:如何在剃须刀上使用内联?
@(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