Alex Maghen
Usenet Archive
- Joined
- Aug 13, 2003
- Messages
- 79
- Reaction score
- 0
Let's say I have a UserControl <Ax:MyCtl> and the only tag inside that ascx file looks like:
<div id="MainDiv" class="InnerCssClass">
SomeText Here
</div>
Now, let's say I have a page that uses MyCtl...
<body>
<Ax:MyCtl id="MyCtl1" class="OuterCssClass" />
</body>
Here's what I've noticed: The "InnerCssClass" will be applied to the "MainDiv" div inside the control, but "OuterCssClass" which is set on the actual instance of the control on the page will have no effect.
Do I have to actually implement a Property inside MyCtl called "class" and then apply it to the Div inside my control? Also on standard tags, I can use "class" *or* CssClass. For my control, do I have to implement a Property for both "class" and "CssClass"?
Your help is much appreciated.
Alex
<div id="MainDiv" class="InnerCssClass">
SomeText Here
</div>
Now, let's say I have a page that uses MyCtl...
<body>
<Ax:MyCtl id="MyCtl1" class="OuterCssClass" />
</body>
Here's what I've noticed: The "InnerCssClass" will be applied to the "MainDiv" div inside the control, but "OuterCssClass" which is set on the actual instance of the control on the page will have no effect.
Do I have to actually implement a Property inside MyCtl called "class" and then apply it to the Div inside my control? Also on standard tags, I can use "class" *or* CssClass. For my control, do I have to implement a Property for both "class" and "CssClass"?
Your help is much appreciated.
Alex