Hi - I'm using AppStylelist for ASP.Net (using NetAdvantage for .Net 2007 Volume 1 CLR 2.0 - Version is 7.1.20071.1048) and I'd like to be able to switch the theme on the fly from my code (I will have 2 external web addresses going to the same site and I'd like each to use a different StyleSetname).
Can anyone help? I really need a quick answer on this...I'll be ever so grateful!
(btw - would prefer code for VB.Net 2005 - but I'll accept almost anything ;)
cheers & thanks in advance!
Jonathan
Hi Jonathan,
I believe the following help article addresses what you're trying to do:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.1/CLR2.0/html/Web_Enabling_Application_Styling_Using_the_AppStylingManager.html
Hope this helps.
-SteveZ
I would reccommend loading the styleset via a stream. Here's a quick example.
Save the styleset file to your resources file or another location.
C#
{
Infragistics.Win.AppStyling.StyleManager.Load(StyleStream());
VB.net
Private function StyleStream() as Stream
return MStream;
End Function
Hope this helps!