Why isn’t style attribute working on usercontrol?
This is my code:
<uc1:ucCredit runat="server" ID="ucCCard" style="display:none;" />
Note: I do not want to set Visible=false. Doing this would not render the element at all which is what I don’t want because I am manipulating the style and it’s display through javascript.
Thanks in advance 🙂
Usercontrols don’t have
styleproperty as far as I know. A quick fix would be to wrap your usercontrol into<span/>or<div/>and giving it appropriate id and then manipulating them in javascript.