preventing default stlye sheet in single page

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
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
 
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
 
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 ! ! !
 
Are you using Master Pages and Themes? Is so, they will inject
stylesteets when needed.
 
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
 
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

Back
Top