PC Review


Reply
Thread Tools Rate Thread

Best practises for using CSS with composite server controls.

 
 
Peter Rilling
Guest
Posts: n/a
 
      8th Jun 2007
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.


 
Reply With Quote
 
 
 
 
PlatinumBay
Guest
Posts: n/a
 
      9th Jun 2007
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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.
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
web composite controls properties of underlying controls Ziyad Makki Microsoft ASP .NET 0 20th Jul 2004 01:39 PM
Composite Server Controls Question =?Utf-8?B?RGltaXRyaXMgUGFudGF6b3BvdWxvcw==?= Microsoft ASP .NET 2 28th Jun 2004 06:57 PM
composite controls... Microsoft Press: Dev ASP.NET Server Controls dx Microsoft ASP .NET 10 11th Apr 2004 12:33 AM
Composite control with dynamic composite controls sleigh Microsoft ASP .NET 1 12th Feb 2004 06:24 PM
Event handling in composite server controls luca Microsoft ASP .NET 0 11th Dec 2003 06:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:44 AM.