I want to change css from code-behind
If I have: <asp:TextBox ID="txt" CssClass="MyClass" runat="Server" />
I can do: txt.Visible = false;
to hide the textbox.
But this will free up the space that the text box txt had. Instead I want to do something like:
txt.css("display", "none");
How can I achieve this in asp.net code behind?
Thanks