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)
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)
精彩评论