I am using themes in a web application and using a querystring on the login page to decide which theme to apply.
Is there a way I can detect if the themeID supplied on the querystring corresponds to an existing theme so that I can use a default theme if it doesn't exist?
For instance:
string themeName = Request.QueryString["theme"];
if (themeName == null)
{
themeName = "Default";
}
//THIS IS WHERE I NEED HELP
if(theme exists then set it)
{
Page.Theme = themeName;
}
else
{
Page.Theme = "Default";
}
TIA
Smeat
Is there a way I can detect if the themeID supplied on the querystring corresponds to an existing theme so that I can use a default theme if it doesn't exist?
For instance:
string themeName = Request.QueryString["theme"];
if (themeName == null)
{
themeName = "Default";
}
//THIS IS WHERE I NEED HELP
if(theme exists then set it)
{
Page.Theme = themeName;
}
else
{
Page.Theme = "Default";
}
TIA
Smeat