eyalb
eyalb

Reputation: 3022

mvc3 razor syntax problem

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

Answers (1)

CD..
CD..

Reputation: 74176

Use:

<div id="img_@(Model.PG_ID)" style="border-bottom:solid 1px #cccccc;">

Upvotes: 3

Related Questions