B
Ben
Hi,
I'm testing theme and dtylesheettheme properties of 'Page' like this:
('test' is a directory of App_Themes).
Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.PreInit
'Page.Theme = "test"
Page.StyleSheetTheme = "test"
End Sub
With Page.Theme, no problem, but with Page.StylesheetTheme, i get the error:
"The StyleSheetTheme property cannot be set, please override the property
instead"
When putting it into the aspx file, it works:
<%@ Page Language="VB" StylesheetTheme="test" CodeFile="theme.aspx.vb"
Inherits="theme" %>
How to correct that?
Thanks
Ben
I'm testing theme and dtylesheettheme properties of 'Page' like this:
('test' is a directory of App_Themes).
Protected Sub Page_PreInit(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.PreInit
'Page.Theme = "test"
Page.StyleSheetTheme = "test"
End Sub
With Page.Theme, no problem, but with Page.StylesheetTheme, i get the error:
"The StyleSheetTheme property cannot be set, please override the property
instead"
When putting it into the aspx file, it works:
<%@ Page Language="VB" StylesheetTheme="test" CodeFile="theme.aspx.vb"
Inherits="theme" %>
How to correct that?
Thanks
Ben