locked
Style Sheet RRS feed

  • Question

  • User-1138911480 posted

    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 

     

    Tuesday, September 23, 2008 8:20 AM

Answers

  • User-294030300 posted

    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";

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 23, 2008 9:22 AM
  • User730446648 posted

    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.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 23, 2008 10:19 AM

All replies

  • User-294030300 posted

    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";

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 23, 2008 9:22 AM
  • User730446648 posted

    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.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, September 23, 2008 10:19 AM
  • User-1138911480 posted

    Thanks. I got it.

     

    Wednesday, September 24, 2008 12:09 AM