I'm trying to open in a new window a new full size image from each one. I'm using this code:
<script type="text/javascript">
function openImage(imageUrl) {
window.open(imageUrl);
}
@foreach (var image in Model.Images)
{
<img src="@Url.Action("Thumbnail", "Done", new { width = 150, height = 150, file = @imagen.filename })" alt="@imagen.filename" onclick="openImage('@Url.Content(ViewBag.Path + @imagen.filename)')" />
}
But using this when I click on a image it can't open anything.
Can you help me with this issue?
Thank you in advanced
EDITED the function openImage due to wrong code