How do I target @Model within a src of an image tag?

Try this one:

<dt>
    @Html.DisplayNameFor(model => model.ImageUrl)
</dt>
<dd>
    <img src="@("~/Content/EmployeeImages" + Model.ImageUrl)" alt="Employee Photo" />
</dd>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)