Hello all
I am using one theme folder for my site.In theme folder i had two more folders one css containing multiple styles another admin containing one style file. The css theme is used for front end and admin theme for backend.In my database i call css folder.The master pages which i use for admin section i set theme property to false so that it will not take theme from databse(css theme used for front end).I place link of admin theme there.But when i try to access my admin section everything is disabled textboxs buttons etc.
Can anyone help me to make the front end theme cancelled discarded from backend so that i can use my backend with ease.
Loading
hamida khanamPosted May 27, 2011, 4:25 AM
Posted May 27, 2011, 2:54 AM
based on this details, you override PreInit event to assign the proper theme.
hamida khanamPosted May 27, 2011, 2:03 AM
Posted May 27, 2011, 1:25 AM
If it is yes then you have change your theme in the OnPreInit event.
protected override void OnPreInit(EventArgs e)
{
base.OnPreInit(e);
if (Session["AdminTheme"] == null)
{
Session.Add("AdminTheme", "White");
//Read the theme details from DB....
Page.Theme = ((string)Session["AdminTheme"]);
}
else
{
Page.Theme = ((string)Session["AdminTheme"]);
}
}