Bootstrap is not recognized in Razor page RRS feed

  • Question

  • User351619809 posted

    I just created a new project. I created a new Layout page and added Bootstrap like so:

        <meta name="viewport" content="width=device-width" />
        <link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
        <link rel="stylesheet" href="~/css/site.css" />
        <link rel="stylesheet" href="~/css/jquery.dataTables.min.css" />

    .net core with razor already came with bootstrap. below is the screen shot:

    enter image description here

    My page is simply doing CRUD operations and I tried to put a bootstrap icon and it did not work:

     <a class="btn btn-lg" asp-page="./Edit" asp-route-id="@item.RecordId"> <i class="glyphicon glyphicon-edit"></i></a> 

    All is see is blank space instead of the icon.

    Any hep will be greatly appreciated.

    Thursday, June 25, 2020 6:56 AM