How to attach external stylesheet with open asp page

I have a CSS file called mystyle.css. I want to add every page of my application to asp.

How to do it?

0


a source to share


3 answers


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

usually you will have the header, footer in a separate file, and my method is to create one separate asp page and then split the code into 3 parts.



  • heading
  • page
  • my footer
+1


a source


Take a look at Overview of ASP.NET Core Pages , this might be what you are looking for.



ASP.NET Core Pages enable you to create a consistent layout for the pages in your application. One master page defines the look and feel and the default behavior you want for all pages (or a group of pages) in your application. You can then create separate content pages that contain the content that you want to display. When users request content pages, they are merged from the master page for display, combining the master page layout with content from the content page.

+1


a source


You cannot do this. ASP does not support master pages.

0


a source







All Articles