Fichiers CSS non inclus pour les invités
Bonsoir tout le monde,
Je débute sur mon projet ASP.net.
J'ai intégré ma base, mis en place le TFS et configurer mon site web à l'aide du fichier Web.config, notamment avec ces directives :
Code:
1 2 3 4 5 6
| <authentication mode="Forms">
<forms loginUrl="~/Login.aspx" timeout="2880" name=".AspxFormsAuth"/>
</authentication>
<authorization>
<deny users="?"/>
</authorization> |
Le problème, c'est que quand je mets cette restriction en place, ma page .master est bien incluse, mais plus mes fichiers CSS.
Voici mon code d'inclusion dans la page Login.aspx :
Code:
1 2
| <%@ Page Title="" Language="C#" MasterPageFile="~/Layout.master"
AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %> |
Et voici mon fichier Layout.master :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| <%@ Master Language="C#" AutoEventWireup="true" CodeFile="Layout.master.cs" Inherits="Layout" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>
</title>
<asp:ContentPlaceHolder id="HeadOptions" runat="server">
</asp:ContentPlaceHolder>
<link href="Styles/KnaStyles.css" rel="stylesheet" type="text/css" media="screen" />
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
<link href="Styles/Styles.css" rel="stylesheet" type="text/css" media="screen" />
<asp:ContentPlaceHolder id="StyleSheets" runat="server">
</asp:ContentPlaceHolder>
<asp:ContentPlaceHolder id="JavascriptFiles" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
...
</body>
</html> |
Merci.