ASP.NET Scheduler - Knowledge Base

« Back to Knowledge Base list

How to handle "Using themed css files requires a header control on the page" exception in Scheduler?

Q:

Getting "Using themed css files requires a header control on the page" exception  when host the schedule control in a web page. Any Possible solution to resolve this? 

A:

When ASP.Net theme is enabled across the application, the web page requires the runat attribute in header, to render the theme and look for themed css files. If it fails to render the theme, it throws "Using themed css files requires a header control on the page" exception.

To handle this exception, Try to set the EnableTheming="False" in Page directive of all scheduler template page( Main.aspx, CreateEvent.aspx, Header.aspx,Settings.aspx, Month.aspx, etc)" and also need to set StylesheetTheme ="" and Theme = "".

Code:
<%@Page EnableTheming="False" StylesheetTheme ="" Theme = "" %>