Hello
I have a small project with 6 web pages. All pages have the same reference to my stylesheet.
The weird thing is that the stylesheet is not applied to the pages. It only works on one specific page.
And what I do not understand is that after this page has been visited the stylesheet is applied to the other pages as well(?).
I will not post any code yet, I just want to know if anyone has an explanation for this kind of behavior?
Mats APosted May 12, 2014, 2:47 PM
I created a "style" folder into my Project where I moved the stylesheet. I then set authorization to allow users = * and now the stylesheet works just fine.
And the reason that the style was working only after that specific page had been visited was because that is when the user was authenticated, and thus given rights to the style file.
Still a lot of wierdness going on but that is another story.
Gopi ChandPosted May 12, 2014, 9:40 AM
Mats APosted May 12, 2014, 12:49 AM
Mats APosted May 10, 2014, 8:33 AM
Mats APosted May 10, 2014, 2:21 AM
Junaid MasoodiPosted May 10, 2014, 1:45 AM
Mats APosted May 10, 2014, 1:34 AM
Junaid MasoodiPosted May 9, 2014, 2:07 AM
Mats APosted May 9, 2014, 12:36 AM
This is how it looks like, and as I said the stylesheet is not applied on any other page than Page 1 (admin_pages_admin) shown below, if those pages are visited first.
However, if you visit the admin_pages_admin page that page will show the correct design, and after this all pages applies the stylesheet(!).
All the pages and the stylesheet is located in the same folder under the project folder. And the top of the aspx page looks like this:
Page 1: admin_pages_admin.aspx (This is the page that works and makes everything else work)
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_pages_admin.aspx.cs" Inherits="test.admin_pages_admin" %>
http://www.w3.org/1999/xhtml">
...
Page 2: admin_pages_default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_pages_default.aspx.cs" Inherits="test.admin_pages_default" %>
http://www.w3.org/1999/xhtml">
...
Page 3: admin_pages_create.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_pages_create.aspx.cs" Inherits="test.admin_pages_create" %>
http://www.w3.org/1999/xhtml">
...
Page 4: customer_pages_default.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="customer_pages_default.aspx.cs" Inherits="test.customer_pages_default" %>
http://www.w3.org/1999/xhtml">
....
Page 5: customer_pages_admin.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="customer_pages_admin.aspx.cs" Inherits="test.customer_pages_admin" %>
http://www.w3.org/1999/xhtml">
...
Page 6 customer_pages_create.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="customer_pages_create.aspx.cs" Inherits="test.customer_pages_create" %>
http://www.w3.org/1999/xhtml">
Administratör - skapa konto
...
Khan Abrar AhmedPosted May 8, 2014, 6:59 AM
can you please send the header section where u are applying the style sheet and folder structure of you website.
Junaid MasoodiPosted May 8, 2014, 3:32 AM
And what I do not understand is that after this page has been visited the stylesheet is applied to the other pages as well(?). No, it won't
Mats APosted May 8, 2014, 2:20 AM
Lakshmanan Sethu SankaranarayanPosted May 8, 2014, 2:17 AM
Lakshmanan Sethu SankaranarayanPosted May 8, 2014, 2:17 AM