Aug 11, 2009, 2:35 PM
Applying Custom Theme
Hi !
I have searched the post about themming but no luck...
I trying this to apply a custom theme on page load:
Error on line: Theme temp = (Theme)Enum.Parse(typeof(Theme), themePath);
Best regards,
Fabio
I have searched the post about themming but no luck...
I trying this to apply a custom theme on page load:
protected void Page_Load(object sender, EventArgs e)
{
string themePath;
var sm = this.ScriptManager1;
themePath = "/custonThemes/black/css/xtheme-black.css";
Theme temp = (Theme)Enum.Parse(typeof(Theme), themePath);
sm.SetTheme(temp);
}
But I´m affraid there´s something missing here I cannot figure out. Error on line: Theme temp = (Theme)Enum.Parse(typeof(Theme), themePath);
Best regards,
Fabio