Welcome Guest Search | Active Topics | Sign In | Register

Callback and Setting Themes at Runtime Options
Information Systems
Posted: Saturday, March 24, 2012 10:10:23 PM
Rank: Newbie
Groups: Member

Joined: 3/14/2011
Posts: 3
I have a web site with a default theme. Depending on who the user is, the theme is changed at run time in the Page_PreInit event, using a statement like Page.Theme = "AlternateTheme".

Some pages have a Callback control with several other controls contained within. On page load, all controls on the page are rendered correctly with the "AlternateTheme". However, when a post back is done within the Callback control, all the containing controls are then rendered using the default theme instead. How do I get them to use the "AlternateTheme" after postback?
eo_support
Posted: Monday, March 26, 2012 9:14:37 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

You may want to try ASP.NET UpdatePanel instead. The reason is for most complicated control to render correctly upon AJAX callback, the control has to be "AJAX aware". Most controls are aware of ASP.NET UpdatePanel because it's from Microsoft so switch to UpdatePanel may just fix the issue for you.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.