Apr 14, 2010 01:39 PM|paperke67|LINK
I have a User Control that has a custom property, which I want to set by a theme.
Page.ClientScript.RegisterStartupScript method in Page_Load.
Basically I do the following :
- Placed a [Themeable(true)] attribute above my user control class.
- I register my user control in web.config.
<add tagPrefix="UC" src="~/UserControls/MyUserControl.ascx" tagName="MyUserControl">
- Placed a skin file under Sunset directory in App_Themes with content :
At runtime everything works fine, but in the designer I keep getting the error :
Error Rendering Control
An unhandled exception has occured.
There was an error parsing the theme: The control type "System.Web.UI.UserControl" cannot be themed.
What am I missing here ?