How to apply a StyleSheetTheme to a page?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top