CSS - problem in aspx page

  • Thread starter Thread starter sumit
  • Start date Start date
S

sumit

Hi,
I am having an asp.net application installed on client's
development server. Previously, When i was hitting the url
to access the aspx page it was working fine and css was
also getting accessed by the application. Suddenly, For
that aspx page, css settings are not getting highlited. I
changed the css file as well but still i am getting that
problem,,,

I dont have any IIS access of that dev. server.
Please suggest the solution asap!!

Thanks
 
The only thing I can think of IIS specific that could cuase this is that the
style information is being brought into the aspx page via SSI, but SSI's
have recently been disabled on the client's dev server.

But I would guess the likely scenario is that the style information is being
brought into the aspx page via SSI or <link> tag, but the specified path is
no longer valid in the context of the aspx page location.
 
I Checked the log file generated by IIS, so found that
for .CSS file it is giving error code as 404. It means NOT
FOUND. probably it is not able to find the path for the
CSS, But I checked that file exists in ./Themes/a.css and
logically it should be able to find it,,
Does it require any restart of IIS or so?

Thanks
 
It should not require a restart of IIS (but it never hurts to restart just
in case). If the file is there, but your virtual path to the file produces
404, then the virtual path must be somehow incorrect. Do you arrive at the
aspx page via Server.Transfer?

Try using a path from the server root instead of from the current location
(start the path to a.css with / instead of ./), and see if that works.
 
Back
Top