More in this section

Forums / Developing with Sitefinity / Change Page Theme at Runtime

Change Page Theme at Runtime

2 posts, 0 answered
  1. Jess Askey
    Jess Askey avatar
    20 posts
    25 Feb 2010
    15 Jul 2010
    Link to this post
    Hi Everyone...

    I am looking to programatically change the page theme at runtime. I found this posting from 2008

    which seems to address the issue, however, the original poster was receiving an error that was never addressed in the thread. I am getting the same error..

    Invalid Page request! The CMS entry point should never be called directly.

    on this line..


    My code is exactly the same as the example, no dice.

    Any thoughts? Im running SF 3.7 under VS 2010 and .NET 3.5 on Windows 7.

    Is there a better way to do this in newer versions of SF?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    16 Jul 2010
    Link to this post
    Hello Jess Askey,

    You can use QueryStrings and RadComboBox control to append a QueryString from the client side using SelectedIndexChanged event of the RadComboBox control. Then inside InternlaPage class there is a method GetTheme which you can override, read the QueryString value and set the theme

    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered