开发者

Razor syntax for field id

开发者 https://www.devze.com 2023-03-15 16:50 出处:网络
How could you implement this syntax using Razor? id=\"btnDelete@item.ID\" I tried id=@:btnDelete@item.ID but it 开发者_JS百科didn\'t workRazor thinks it\'s an email address.

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

精彩评论

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

关注公众号