Custom Control CssClass

S

shapper

Hello,

I have a custom control named Parent and a another one named Child.

I am adding 20 Child controls to Parent. All 18 of the 20 Child
controls have the same CSSClass.

My idea is to give have a property in Parent named ChildCssClass. I
would add that to Child controls.

Then for the 2 Child controls that do not have that CssClass I would
set Child1.CssClass = "Something" and Child2.CssClass = "Something"
overriding the ChildCssClass defined in Parent.

Is this a good way to do this?

How can I do this?

Thanks,

Miguel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top