Access parent Page's objects from Custom Control

R

Rob Mayo

I was wondering...

How could I grab the <HEAD> tag of the parent page of a Custom Control?

I'm basically writing a client-side calendar control that has style properties that i would like to set via a style sheet, rather than implementing my own font properties.

I want to be able to grab the <HEAD> tag of the parent page (either as an object or text) and parse it to determine if my <LINK> tag has been applied. If it has not, then I want to add the tag programmatically. I could apply the same concept to script with
IsClientScriptBlockRegistered and

RegisterClientScriptBlock

but how can I do this for a <LINK> tag or a <STYLE> tag?
 

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