Phaneendra Chakravaram

Phaneendra Chakravaram

  • 1.4k
  • 490
  • 50.5k

how to get particular data of iframe

Dec 5 2017 6:10 AM
whenever iam clicking popup  buttobclick its showing first result only ? i want to show particular moviee youtube url
 
<div class="container">
<div id="main" class="row">
@{
foreach (var item in Model)
{
//var url = /*@item.TrailerURL.Replace("/?autoplay=0", "");*/
<div class="col-lg-3">
string ss: @item.name
@*// var url=@item.TrailerURL.Replace("/?autoplay=0", "");*@
<img src="@item.thumbnail" />
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Trailer</button>
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
</div>
<div class="modal-body">
<iframe width="560" height="315" src="@item.TrailerURL.Replace("/?autoplay=0", "");" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
</div>
}
}
</div>
</div>

Answers (1)