开发者

Razor syntax for field id

How could you implement this syntax using Razor?

id="btnDelete@item.ID"

I tried id=@:btnDelete@item.ID but it 开发者_JS百科didn't work


Razor thinks it's an email address.

You need to write btnDelete@(item.ID)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜