Created
October 10, 2016 04:22
-
-
Save ahmadaghazadeh/2750b951f4cfb33810bcaacbd70b60f6 to your computer and use it in GitHub Desktop.
MVC image gallery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@foreach (var item in resPacks) | |
{ | |
<div class="col-lg-2 col-md-2 col-sm-3 col-xs-6" width="150" height="150"> | |
@item.NAME | |
@Html.Image(item._id.ToString(), item.DATA, $"class=\"img-responsive\" alt=\"{item._id.ToString()}\" ") | |
</div> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment