I’m using this code to change the applications theme
protected void Page_PreInit(object sender, EventArgs e)
{
MasterPage m = Master;
string theme = Session["theme"].ToString();
Page.Theme = theme;
}
The theme that is in the Session is Theme Aqua , but the theme is getting reset to standard.I’m using the devexpress themes with the devexpress controls
Also is this a good way to set the theme , is there a way u can set your theme program wide in stead of doing it page by page
You can apply the theme to an entire website by adding the
element to the
<system.web>section of a Web.config file.This will automatically apply the theme to all pages in your site.