I have a application on asp.net mvc3 and working in a razor view. 
On my layout page I attach a css file and put some css in that file, but when I access /Account/LogOn view the css is not working.
It only works if I attach the css on Logon view. Anyone know why my css attached on the layout page is not working on /Account/LogOn?  
I also tried by including following code:
@{
Layout = "~/Views/Shared/_Layout.cshtml";
ViewBag.Title = "xyz.com – Login";
 }
It is still not working. Thanks in advance
Refer your css using url helper like this
<link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/default.css")"  media="screen" />
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With