I have a razor syntax like this:
foreach(var item in model) { 6/16/2016 2:02:29 A 3条回答 执念已碎 (楼主) 2020-12-16 10:19 You should pass @item.email in quotes then it will be treated as string argument 6/16/2016 2:02:29 AM Otherwise, it is treated as variable thus error is generated. 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
You should pass @item.email in quotes then it will be treated as string argument
@item.email
6/16/2016 2:02:29 AM
Otherwise, it is treated as variable thus error is generated.