ASP.Net 2.0 CSS

J

JeffD

I am working on an asp.net 2.0 project. It started out as the Club
starter kit, modified by devcow.com. The problem I am having is that
any changes I make to the CSS file for the theme I am using do not do
anything. I am loading the correct theme and I am sure I am working
on the right css file, the one in the app_themes\club folder. This is
the theme I have the user set for. It must be using something else
but sure can't figure it out.

Any Ideas?

Thanks in advance

Jeff D.
 
R

Riki

JeffD said:
I am working on an asp.net 2.0 project. It started out as the Club
starter kit, modified by devcow.com. The problem I am having is that
any changes I make to the CSS file for the theme I am using do not do
anything. I am loading the correct theme and I am sure I am working
on the right css file, the one in the app_themes\club folder. This is
the theme I have the user set for. It must be using something else
but sure can't figure it out.

Any Ideas?

Open your file in the browser, and view the HTML markup source code in the
browser.
Check if the css links to the right file.
Copy/Paste the css link in the browser's address bar and see if it opens
your css file.

If that doesn't indicate the problem, you are simply applying the css in the
wrong way
(e.g. you may be applying a style to a <td> tag, while you should apply it
to the <tr> tag, etc.)
 
G

Guest

Hi Jeff,

Make sure Theme attribute in <@page> directive is properly set:
<@ Page blablabla Theme="Club">, then see if css has been emited

<head><title>
Untitled Page
</title><link href="App_Themes/Clus/YourStylesheetName.css" type="text/css"
rel="stylesheet" /></head>
Please remember, style sheets are usually cached in client's disk, therefore
every time you amend css, reload entire page (IE: Ctrl+F5)

hope this helps
 
J

JeffD

I knew it had to be something stupid. The ctrl-F5 did the trick. I
moved the app to another computer and tried it and the changes I had
made on the original computer worked. Then I made some more changes
and they worn't taking effect. Ctrl F5 did the trick. I guess I just
figured VS would clear the cahce before it ran the app.

Thanks a lot, my head feels better!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top