Can I register a CSS file - like javascript?

G

Graham

I like the idea that I can register a javascript file using RegisterClientScriptBlock
This means that any page using my control will also pull in the required javascript

I would also like the page that is using my control to pull in a css file. Is there any way to do this
i.e. instead of a script statement, I want to render a link statement like this
<LINK href="/WebSite/css/myControlStyles.css" type="text/css" rel="stylesheet"

Thank
graha
 

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
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top