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?
|
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!
|