Your user control's output is destined to be included in-line with HTML in
the rendered page, so it's OK to add attributes to your controls to refer to
CSS classes, id, etc. so long as the CSS style sheet loaded by the page has
corresponding classes, ids etc., all will be sweet.
You're not thinking of adding a stylesheet link <link
href="../css/General.css" rel="stylesheet" type="text/css" /as part of
your user control content are you? That's not going to work (well, some
browsers may accept this kind of sloppy practice but flags should be raised
about breaking W3C standards compliance). If the rules you need are not in
the page's stylesheet you *could* add some code in the control's load event
to add an additional styelsheet link to the <headof the containing page,
but I suspect that's more effort than you're aiming for.
"Andy B" <a_*****@sbcglobal.netwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
How do you use css in a user control? I need to put the css in a
stylesheet outside of the control.