Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

my stylesheet reference is not working Error This localhost page can’t be found

$
0
0

Hi

I am using the following style sheet in my program in the folder <link href="~/Content/login/css/style.css" rel="stylesheet" />. But it always shows yellow colour and style is not working. When I debug through  view pagesource ' the following error is coming

This localhost page can’t be found

No web page was found for the web address:http://localhost:51/Content/login/css/style.css. My code is given below

@using System.Collections.Generic
@using System.Linq
@using Microsoft.AspNetCore.Http
@using Microsoft.AspNetCore.Http.Authentication
@using Microsoft.AspNetCore.Identity
@model LoginViewModel
@inject SignInManager<ApplicationUser> SignInManager
@{
    ViewData["Title"] = "Log in";
}<!DOCTYPE html><html><head>
    @*<meta charset="UTF-8">*@<meta http-equiv="X-UA-Compatible" content="IE=edge" /><title>Login</title><link href="~/Content/login/css/style.css" rel="stylesheet" /><script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script><script type="text/javascript">$(document).ready(function () {$(".username").focus(function () {$(".user-icon").css("left", "-48px");
            });$(".username").blur(function () {$(".user-icon").css("left", "0px");
            });$(".password").focus(function () {$(".pass-icon").css("left", "-48px");
            });$(".password").blur(function () {$(".pass-icon").css("left", "0px");
            });
        });</script></head><body>

     asdsadasd

</body></html>


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>