uses.
I tried the same master and css with another page and it works so now I am thinking its a problem with
redirection to the login page by web.config settings ? I don't know I am stuck any help would be appreciated
CSS file contents
File Name: StyleSheet.css
#pagelogo
{
background-color: #000080;
color: #d3d3d3;
vertical-align: middle;
padding: 10px;
font-size: 150%;
}
Master Page file contents
Name : TopLevel.master
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="TopLevel.master.cs" Inherits="TopLevel" %>
Login page contents
Name : Login.aspx
<%@ Page Language="C#" MasterPageFile="~/TopLevel.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" Title = "Login"%>
Web.config file contents
FileName: Web.config
applicationName="MyApplication"
enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
requiresUniqueEmail="true"
passwordFormat="Clear" />
connectionStringName="MembershipConnection"
applicationName="MyApplication" />
David BrennanPosted Jul 23, 2010, 6:25 AM
Thank you for the reply.
When you view source on the login page
is displayed as expected.
The css file the Master page and the Child page all have the same path.
If i add the css directly on to the login page without linking to an external css file this works, so its not the css elements
themselves its not the master page.
So basically I think its the fact that I am using Authentiction mode = forms and the login page (which won't render the external css) is the url for the authentication is causing the problem.
Its some type of permissions issue I suppose, though the css is in the same directory!
ArshadPosted Jul 21, 2010, 9:02 AM
This problem is because of Path. Are you using the master and child aspx pages under the same folder or is it differnet. just do the view source from the browser and check whether its mapped with the correct path or not. you will get to know.
href="StyleSheet.css" rel="stylesheet" type="text/css" />
Regards,
Arshad