![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a custom control that I would like to have add style rules to the Page that contains it. I know how to do this, using the following method: Me.Page.Header.StyleSheet.CreateStyleRule However, I only want to add the style rule once, since it is the same for every instance of the custom control. When adding scripts, I would simply use the following two statements to add a script and check whether it was already added: Me.Page.ClientScript.RegisterClientScriptBlock Me.Page.ClientScript.IsClientScriptBlockRegistered But I could not find anything like this for stylesheets. What would be the best way to have a custom control add a style rule and make sure it is only added once? Thanks. -- Nathan Sokalski njsokalski (AT) hotmail (DOT) com http://www.nathansokalski.com/ |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |