Showing posts with label height. Show all posts
Showing posts with label height. Show all posts

Wednesday, March 28, 2012

text control as hidden field?

hello
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"

Thursday, March 22, 2012

Textareas Height and Width not Sent to Firefox

Hello:

When my web application is invoked by Firefox the height and width
information is passed to Internet Explorer but not to Firefox.

The ASP.NET control is
<asp:textbox id="tbxNote" runat="server" Width="100%" Height="226px"
TextMode="MultiLine">
For IE it renders
<textarea name="tbxNote" id="tbxNote" style="height:226px;width:100%;">
For Firefix it renders
<textarea name="tbxNote" id="tbxNote"
Is there something I can do to induce ASP.NET to pass the style information
to Firefox?

I will be very grateful for your help.Hi,

you need just tweak browser detection within config files so that FireFox is
recognized better.
http://weblogs.mozillazine.org/gerv...ves/008336.html

--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
set rows and columns for w3c compliance

"honcho" <goaway@.nospam.com> wrote in message
news:1121195322.46481282447c7dd42a8bb382e8a6d776@.b ubbanews...
> Hello:
> When my web application is invoked by Firefox the height and width
> information is passed to Internet Explorer but not to Firefox.
> The ASP.NET control is
> <asp:textbox id="tbxNote" runat="server" Width="100%" Height="226px"
> TextMode="MultiLine">
> For IE it renders
> <textarea name="tbxNote" id="tbxNote" style="height:226px;width:100%;">
> For Firefix it renders
> <textarea name="tbxNote" id="tbxNote">
> Is there something I can do to induce ASP.NET to pass the style
> information to Firefox?
> I will be very grateful for your help.
That was a very useful suggestion. Thank you.

"TJS" <nospam@.here.com> wrote in message
news:ee$JcDyhFHA.1968@.TK2MSFTNGP14.phx.gbl...
> set rows and columns for w3c compliance
>
> "honcho" <goaway@.nospam.com> wrote in message
> news:1121195322.46481282447c7dd42a8bb382e8a6d776@.b ubbanews...
>> Hello:
>>
>> When my web application is invoked by Firefox the height and width
>> information is passed to Internet Explorer but not to Firefox.
>>
>> The ASP.NET control is
>> <asp:textbox id="tbxNote" runat="server" Width="100%" Height="226px"
>> TextMode="MultiLine">
>> For IE it renders
>> <textarea name="tbxNote" id="tbxNote" style="height:226px;width:100%;">
>> For Firefix it renders
>> <textarea name="tbxNote" id="tbxNote">
>>
>> Is there something I can do to induce ASP.NET to pass the style
>> information to Firefox?
>>
>> I will be very grateful for your help.
>>