I would like to have text control "appear" as hidden on the page. Now the only way to make it invisible is to set its width and height to zero or set special style.
I tried to change the atribute "type" to "hidden" but then i always have both types: "text" and "hidden" even if i run Attributes.Clear() method before i render.
PS. I add the control dynamically in code , not on the design screen.
Regards
Pawel Palasz
pawel.palasz@dotnet.itags.org.echarris.comIf you're talking about the ASP.Net Textbox - - it has a Visible property - - just set it to False or True whenever you'd like, in your code.
Try this one
<asp:TextBox id="TextBox1" style="Z-INDEX: 101; LEFT: 94px; POSITION: absolute; TOP: 98px;" runat="server"></asp:TextBox>
And from the code behind simply set the "display" style of the TextBox
TextBox1.Style.Item("display") = "none"
0 comments:
Post a Comment