String concatenation with ASP.NET MVC3 Razor

后端 未结 5 1919
长发绾君心
长发绾君心 2021-01-08 00:43

i\'m trying to concatenate a string in asp.net mvc 3 razor and i\'m getting a little sintax problem with my cshtml.

i what to generate an id for my checkboxes on a f

5条回答
  •  渐次进展
    2021-01-08 01:41

    should work.

    The most direct and clean way to add a prefix a suffix.

    @("PREFIX " + obj.field + " SUFFIX")
    

提交回复
热议问题