Page view counter

Style Sheet

Last post 09-24-2008 12:09 AM by mapelixir. 3 replies.

Sort Posts:

  • Style Sheet

    09-23-2008, 8:20 AM
    • Loading...
    • mapelixir
    • Joined on 09-23-2008, 8:16 AM
    • Posts 3

    Hello

     I just want to know which code determines that which stylesheet is picked up.

    App_Themes/Blue

    App_Themes/Green

    App_Themes/Red

    Regards,

     

    Sai 

     

  • Re: Style Sheet

    09-23-2008, 9:22 AM
    Answer
    • Loading...
    • bmains
    • Joined on 10-22-2004, 12:20 PM
    • Posts 5,263
    • TrustedFriends-MVPs

    In OnPreInit, you can switch the theme by setting the Page.Theme property to a value.  Normally you can set the Theme in the @Page directive in the ASPX markup, but you can change the theme in OnPreInit, and assign it a value like this.Page.Theme = "Blue";

    Brian

    "Trust in the Lord and do what is good; dwell in the land and live securely. Take delight in the Lord, and He will give you your heart's desires" (Psalm 37: 3-4).
  • Re: Style Sheet

    09-23-2008, 10:19 AM
    Answer
    • Loading...
    • darkknight187
    • Joined on 09-14-2006, 4:35 AM
    • Bothell, Washington
    • Posts 816

    Along with the above, I do not wish to change themes, so I just set one as the default.
    That is done in your web.config file.

     

    Please remember to click “Mark as Answer” on the post that helps you.
    This can be beneficial to other community members reading the thread.
  • Re: Style Sheet

    09-24-2008, 12:09 AM
    • Loading...
    • mapelixir
    • Joined on 09-23-2008, 8:16 AM
    • Posts 3

    Thanks. I got it.

     

Page 1 of 1 (4 items)
Microsoft Communities