I have a foreach loop inside of a div tag with container as well as a div with class row. When I run the page in a browser for some reason the div tags don't render the way I want them to. I looked at the console in the browser and my style sheets aren't being reading correctly. I'm getting an error404 message.
- @{
- Layout = null;
- MovieResults movieResults = ViewData["movies"] as MovieResults;
- }
- "en">
- "UTF-8"/>
- "viewport" content="width=device-width, initial-scale=1"/>
-
Movie Streaming Availability App - "stylesheet" type="text/css" href="lib/bootstrap/dist/css/bootstrap-grid.css">
- "stylesheet" type="text/css" href="lib/bootstrap/dist/css/bootstrap.css">
- "stylesheet" type="text/css" href="lib/bootstrap/dist/css/bootstrap-reboot.css">
- "stylesheet" type="text/css" href="css/site.css">
- class="container">class="row">
- @foreach (var movie in movieResults.Results)
- {
class="col-md-3">"https://image.tmdb.org/t/p/w300/@movie.PosterPath" alt="@movie.Title">
- }
Sachin SinghPosted Dec 24, 2020, 5:15 PM
Mageshwaran RPosted Dec 24, 2020, 5:15 PM