Forums - C# Corner

Forum guidelines
Mukesh

Mukesh

  • 1.6k
  • 107
  • 6.7k

How to display image in model pop up in MVC

Sep 10 2018 10:45 AM
@foreach (var item in Model._DriverReporList)
{
@item.DriverId
@item.DriverName
@item.Address
@item.ContactNo
@item.DLNO
@item.DLExpiryData
<a herf="#" @item.Photo class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">View Photo
@if (item.IsActive == 1)
{
<span class="label label-sm label-success">Active </span>
}
else
{
<span class="label label-sm label-danger">InActive</span>
}
<a>class="fa fa-lg fa-edit"></a>
}
 
above is my code i want to know how to display photo in model pop up please help me

Answers (1)