preventing default stlye sheet in single page

N

news.microsoft.com

Hello

I have set up a CSS for my site but I have one page that I dont want it
used.

How do I tell ASP.NET not to load the sheet on this page

Sorry if this is simple question but I have looked for an answer but got
no-where

Any help will be much appreciated
Phil
 
N

news.microsoft.com

I've looked into the aspx file and there is no reference to the css style
sheet

It looks to me as if ASP.NET is putting it in for me.

How do I tell ASP.NET not to do this

Thanks for help so far

Phil
 
G

Guest

Hi

Have you made any BasePage Class, ehich all the pages inherit. I think you
have a base class created in which you have declared the CSS. so on load of
the page where you dont need the CSS, call some method of the base page class
which handles this ! ! !
 
T

tdavisjr

Are you using Master Pages and Themes? Is so, they will inject
stylesteets when needed.
 
P

phil cunningham

I am using mater sheets but this particualr page does not inherit from it.

It seems as if ASP.NET is just stuffing the CSS sheet into every page
regardless.

Is there some global setting I can change

All help much appreciated
Phil
 
L

Lau Lei Cheong

Probably you can type javascript:alert(document.styleSheets[0].href) on the
address bar to see which one is used, set it to null in <head> if your don't
like it and can't found you've included it at where.
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top