By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

Best practises for using CSS with composite server controls.

P: n/a
Hi,

I am creating some ASP.NET composite server controls (inheriting from
CompositeControl). Right now I have the styles for the various objects
hardcoded, but what I would like to do is allow the user to use a stylesheet
without actually knowing the internal structure of the control. I am
insterested in knowing some of the best pracises for using stylesheets with
composite controls.

For example, when a person sets a border style on the main object, I would
like it not to affect the main container but rather the chile controls such
as textboxes and so on.
Jun 8 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Peter,

I think that to apply a CSS style to a child control, you would need to
write logic to do this.

Hope this helps,
Steve

"Peter Rilling" <pe***@nospam.rilling.netwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Hi,

I am creating some ASP.NET composite server controls (inheriting from
CompositeControl). Right now I have the styles for the various objects
hardcoded, but what I would like to do is allow the user to use a
stylesheet without actually knowing the internal structure of the control.
I am insterested in knowing some of the best pracises for using
stylesheets with composite controls.

For example, when a person sets a border style on the main object, I would
like it not to affect the main container but rather the chile controls
such as textboxes and so on.


Jun 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.