A
Alex Maghen
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
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