Hi,
From the code,
razamit:link href="GeneralStyles.css" rel="stylesheet" type="text/css" />
we can see, the css file and the master page are in the same level,
and from this we can see:
razamit:<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="test.WebForm1" Title="Untitled Page" %>
they should be at the root level, aren't they?
But from this we can see:
razamit: <script src="../Scripts/PostPage.js" type="text/javascript"></script>
this content page is not at root node, so maybe this is the cause of your problem.
To slove your problem, you can do like this:
<link href='<%# Page.ResolveUrl("~/GeneralStyles.css") %>' rel="stylesheet" type="text/css" />
In fact, if you refer the css file in the master page, but not all the pages work well. Bacause it is related to path of the content page.
The master page class derives from the UserControl class. When the application is executing, the master page just like another child control.
In addition, you also can use the absolute path to refer the css file, but you should make sure the link works at server:
for example:
<link href='~/GeneralStyles.css'' rel="stylesheet" type="text/css" runat=server />
Hope it helps.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Yours sincerely,
Amanda Wang
Microsoft Online Community Support