I am trying to apply a skin to a tabstrip based on a user selection. If i use the embedded skins everything works fine but if i try to use a custom skin it does not get applied. If i set one of the custom skins in the markup it works fine. It just does not work when i try to set it in the page_load event. So in the code below case 1 and 3 work using the embedded skins but case 2 does not work. The custom skin is in the radcontrols directory in the root of the website.
if (!string.IsNullOrEmpty(Request.QueryString["ProductID"])) |
{ |
Product rootProduct = ProductManager.GetParentProduct(int.Parse(Request.QueryString["ProductID"])); |
switch (rootProduct.ProductName.ToLower()) |
{ |
case "metasmart & smartamine": |
ProductHeaderSmart.Visible = true; |
//tsCategories.SkinID = "ProductStripSmart"; |
tsCategories.Skin = "Outlook"; |
break; |
case "rovabio": |
ProductHeaderRova.Visible = true; |
tsCategories.EnableEmbeddedSkins = false; |
tsCategories.Skin = "ProductStripRova"; |
break; |
case "rhodimet": |
ProductHeaderRhod.Visible = true; |
//tsCategories.SkinID = "ProductStripRhod"; |
tsCategories.Skin = "WebBlue"; |
break; |
case "microvit": |
ProductHeaderMicro.Visible = true; |
//tsCategories.SkinID = "ProduuctStripMicro"; |
break; |
default: |
break; |
} |