Access parent Page's objects from Custom Control

Discussion in 'ASP .Net Web Controls' started by Rob Mayo, Jul 3, 2003.

  1. Rob Mayo

    Rob Mayo Guest

    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?
     
    Rob Mayo, Jul 3, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Alan Silver
    Replies:
    3
    Views:
    442
    Alan Silver
    Aug 9, 2005
  2. RedHair
    Replies:
    5
    Views:
    6,918
  3. Matt Sokol
    Replies:
    2
    Views:
    409
    Theo Tillotson
    Aug 7, 2003
  4. RedHair
    Replies:
    5
    Views:
    309
  5. Bitswapper
    Replies:
    5
    Views:
    162
    Prasad, Ramit
    Aug 27, 2013
Loading...

Share This Page