CSS with FORMS authentication


K

Kevin

Hello my name is Kevin

i have a problem with loading a css file for my Login.aspx

when i remove the <Authentication> part below
my layout is shown in my login page
otherwise it doenst load the CSS, what could be the problem ?


heres my css file :


A
{font-size: small; color: #7C6F57; font-family: verdana; cursor: crosshair;
text-decoration: none;
}
A:hover
{font-size: small; color: #7C6F57 ; font-family: verdana; text-decoration:
Underline; cursor: crosshair;
}
A:link
{font-size: small; color: #7C6F57; font-family: verdana; cursor: crosshair;
}
A:visited
{font-size: small; color: #7C6F57; font-family: verdana; cursor: crosshair;
}
body
{
cursor: crosshair;
background-image: url(Images/Background_Repeat.jpg);
background-attachment: fixed;
background-repeat: repeat-x;
background-color: white;
}
..Item
{
border-right: black 1px solid;
border-top: black 1px solid;
border-left: black 1px solid;
border-bottom: black 1px solid;
background-color: #e0e0e0;
cursor:crosshair;
}
..Gridview
{
border-right: black 1px solid;
border-top: black 1px solid;
border-left: black 1px solid;
border-bottom: black 1px solid;
cursor: crosshair;
background-color: Silver;
font: menu;
}


i placed in my root folder in my solution explorer
i placed this in my web.config:



<authentication mode="Forms" >
<forms loginUrl="login.aspx"
name=".ASPXFORMSAUTH"
slidingExpiration ="true"></forms>
</authentication>

<authorization>
<deny users="?" />
</authorization>




Kind Regards KEVIN
 
Ad

Advertisements

C

Cowboy \(Gregory A. Beamer\)

I have never seen this, but a few questions;

1. Are you using Master Pages?
2. If so, is the CSS linked to the Master Page?

In our implementation, the CSS links to the master page, which works on all
pages that use that master. We will likely dynamically alter the CSS for
Firefox, due to some incompatibility, but I have not conquered that hurdle
yet.

Not sure why authentication would alter any of this, but I would look at
source on the rendered page, both with and without, and see if the path for
the CSS is somehow changing. Worst case is to embed the CSS in the page.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*************************************************
Think outside of the box!
*************************************************
 
Ad

Advertisements

B

bruce barker \(sqlwork.com\)

be sure the css file extension is not mapped to asp.net (or exclude it from
authenication in the web config) , or it cannot be referenced until the user
logs in.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top