Aarsh Thakur
Aarsh Thakur

Reputation: 607

how to attach a external style sheet with evary page of asp

I have a CSS file called mystyle.css. I want to attach with each and every page of my application in asp.

How Can I do this?

Upvotes: 0

Views: 555

Answers (3)

John Saunders
John Saunders

Reputation: 161791

You can't do this. ASP does not support master pages.

Upvotes: 0

Ian G
Ian G

Reputation: 30244

Have a look at ASP.NET Master Pages Overview it may be what you are looking for.

ASP.NET master pages allow you to create a consistent layout for the pages in your application. A single master page defines the look and feel and standard behavior that you want for all of the pages (or a group of pages) in your application. You can then create individual content pages that contain the content you want to display. When users request the content pages, they merge with the master page to produce output that combines the layout of the master page with the content from the content page.

Upvotes: 1

davethecoder
davethecoder

Reputation: 3932

at the top of your asp page, then your header page holds the CSS, Javascript etc etc

normally you would have header, footer in a seperate file and my method used to be to create one single asp page, then split the code into 3 pieces.

  1. the header
  2. the page
  3. my footer

Upvotes: 1

Related Questions