S
shapper
Hello,
How can I apply a StyleSheetTheme to a page at runtime?
My Default.aspx.vb code is as follows:
1 Partial Class _Default
2 Inherits Config
3 ...
And my Config.vb file is as follows:
1 Public Class Config
2 Inherits Page
3
4 Public Overloads Overrides Property StyleSheetTheme() As
String
5 Get
6 Return CType(Context.Profile,
ProfileCommon).Settings.StyleSheetTheme
7 End Get
8 Set(ByVal value As String)
9 CType(Context.Profile,
ProfileCommon).Settings.StyleSheetTheme = value
10 End Set
11 End Property
12 ...
I tried in my Page_PreInit to do something like Page.StyleSheetTheme =
Config.StyleSheetTheme. I get an error on this line as StyleSheetTheme
is not recognized under Config.
Anyway, could someone tell me how to apply the StyleSheetTheme at
runtime?
Thanks,
Miguel
How can I apply a StyleSheetTheme to a page at runtime?
My Default.aspx.vb code is as follows:
1 Partial Class _Default
2 Inherits Config
3 ...
And my Config.vb file is as follows:
1 Public Class Config
2 Inherits Page
3
4 Public Overloads Overrides Property StyleSheetTheme() As
String
5 Get
6 Return CType(Context.Profile,
ProfileCommon).Settings.StyleSheetTheme
7 End Get
8 Set(ByVal value As String)
9 CType(Context.Profile,
ProfileCommon).Settings.StyleSheetTheme = value
10 End Set
11 End Property
12 ...
I tried in my Page_PreInit to do something like Page.StyleSheetTheme =
Config.StyleSheetTheme. I get an error on this line as StyleSheetTheme
is not recognized under Config.
Anyway, could someone tell me how to apply the StyleSheetTheme at
runtime?
Thanks,
Miguel