loading 2 css files in page load

I have an asp.net with master page and content pages.

I have a master.css file that I want to load with the masterpage each time. I have separate css pages that go with the content pages. I would like to load these (add them to the master page) in the page_load event of the content page.

Is there a way to do this?  I tried the below but it seems to replace the masterpage's css file and not load both as I intend.

protected void Page_Load(object sender, EventArgs e)
            this.Header.InnerHtml = "<LINK href='Customer.css' type='text/css' rel='stylesheet'>";


Open in new window

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.


  Define a theme(Ex: Default)
Put all your css in this folder.

set the theme in web.config
<Pages theme="Default"/>

rutledgjAuthor Commented:
Thanks but thats not what I'm trying to accomplish. I just want to be able to have two css files. One for the master page and one for the content page.
rutledgjAuthor Commented:
I found a solution here:

 HtmlLink link = new HtmlLink();
            link.Attributes.Add("type", "text/css");
            link.Attributes.Add("rel", "stylesheet");
            link.Attributes.Add("href", "~/Customer.css");

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.