Apr 2, 2011 at 6:29 PM
Edited Apr 2, 2011 at 6:30 PM
That looks like a good idea from rkuss for registering scripts.
If it's just the CSS you want to add, you could try something like this.
Add to your user control code
private void LoadCSS()
HtmlLink css = new HtmlLink();
css.Attributes["type"] = "text/css";
css.Attributes["rel"] = "stylesheet";
css.Attributes["href"] = "/themes/yourtheme/css/yourcss.css"; //path to your css
Then call that from one of the user controls's loading functions, you would probably want to add some kind of guard so that you don't load the same file repeatedly.
Or adapt the RegisterScriptFile to RegisterCSS if you're looking for reuse.