Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I set the location of the Stylesheet in the codebehind?

Status
Not open for further replies.

VBRookie

Programmer
May 29, 2001
331
US
I need to be able to change the stylesheet file location in my application dependent upon where the user is in the site. Currently I'm using a page template for the site that all of my pages inherit from. The page template contains the stylesheet information and such.

I'm able currently to change the page title for a page. I made the title element a server control and was able to write a method that is accessible to all of my pages so that I can change it.

I tried the same thing for the link element but I don't seem to have access to the href property which is where the stylesheet file is specified.

Has anyone tried this before? How can I accomplish this?

- VB Rookie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top