The button names should be added dynamically.
A user suggested the solution below (name="@model.id"
) but the syntax doesn't seem right.
How can I rewrite that HTML attribute (and add the static text "Button" to it)?
The button names should be added dynamically.
A user suggested the solution below (name="@model.id"
) but the syntax doesn't seem right.
How can I rewrite that HTML attribute (and add the static text "Button" to it)?
you are using the wrong keyword.
model
is for setting model type
you should be using
@Model.id
P.S. case sensitive