Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am using various themes . When I change from one theme to another, the previous part of the Theme is applied to some parts during initial load. Applying theme is done in Code Behind only . Attached is the image.

http://i842.photobucket.com/albums/zz344/vinodh28/Theme_Error.jpg
Posted
Updated 1-Nov-10 2:47am
v2
Comments
Sunasara Imdadhusen 1-Nov-10 9:05am    
Not clear! Please explain your problem in detail
raju melveetilpurayil 1-Nov-10 18:05pm    
Sunasara Imdadhusen is correct.

1 solution

I hope you used the Page_PreInit event to assign the theme:

C#
protected void Page_PreInit(object sender, EventArgs e)
        {
            this.Theme = "aaa";
        }
 
Share this answer
 
Comments
Vinodh.B 8-Nov-10 7:12am    
Hi
Actually the Theme is stored in Db & Applied according to the User Preference . No Hardcoding of Theme is done in Code Behind . The Screen Shot as shown in above appears in only that screen . Remain screen Works Perfect .
Ed Guzman 8-Nov-10 8:51am    
Then you have to drill down what happens when you change from one theme to another, what settings are changed and when. There are too many unknowns for making any decisions. If you want to change a theme when reloading a page then the PreInit event is the right place to do it. Actually the only place to do it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900