I have a Master Page based Web site that has menu functionality. CSS is read from a Style.css file successfully. I have now added a seperate Login.aspx page which functions fine, but does not pick up the Account.css file, which has the specific css for the Login page. I do not want the login page to refernence the master page.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>
<!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 runat="server">
<title></title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>
<link href="Account.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$(document).ready(function () {
$('.grid_12').fadeIn(1750);
});
</script>
</head>
I would appreciate any insight, as I have tried referencing the Account.css file path every way i can think of:
href="./Account.css"
href="Account.css"
href="~/Account.css"
I have now placed the Login.aspx page and Account.css file in a new login folder at website root.
There may be a region that your are using form authentication.
If yes then you can use
Inside
Else you can use