I want to do custom CSS style rendering, so I created a new UserControl.
From there, I thought it was easy to create a new CssStyleCollection called Style. This does not work! How to compile this code? (just an example)
class MyControl : UserControl{
CssStyleCollection Style=new CssStyleCollection();
}
I do not understand what I am doing wrong here. CssStyleCollection is a private class, but it is not static. How to create a new instance?
In addition, the specified compiler error
The type System.Web.UI.CssStyleCollection has undefined constructors
Earlz source
share