Skip to content

Bootstrap class name error in courses table #35912

@smiller7812

Description

@smiller7812

Description

The Bootstrap class in courses table for the Instructors View file needs to be table-success rather than success like in the Instructors table above it.

@foreach (var item in Model.Courses) { string selectedRow = ""; if (item.CourseID == (int?)ViewData["CourseID"]) { selectedRow = "success"; }

Should be:

selectedRow = "success";

Page URL

https://learn.microsoft.com/en-us/aspnet/core/data/ef-mvc/read-related-data?view=aspnetcore-9.0#next-steps

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/data/ef-mvc/read-related-data.md

Document ID

823ce300-dcb9-b51d-fe4b-5bb4625a8126

Platform Id

cf974cb8-27b5-726c-734f-8279a8aeffd0

Article author

@tdykstra

Metadata

  • ID: f988f508-f5be-9961-830d-aa569adfcce9
  • PlatformId: cf974cb8-27b5-726c-734f-8279a8aeffd0
  • Service: aspnet-core
  • Sub-service: data-access

Related Issues

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions