Reputation: 3022
i want to give id to div in a loop and i want to use that code
<div id="[email protected]_ID" style="border-bottom:solid 1px #cccccc;">
but the rendered html is [email protected]_ID and not img_xyz
Upvotes: 1
Views: 207
Reputation: 74176
Use:
<div id="img_@(Model.PG_ID)" style="border-bottom:solid 1px #cccccc;">
Upvotes: 3