Transparent Textbox Visible in Safari

  • Thread starter Thread starter ProgrammerChicago
  • Start date Start date
P

ProgrammerChicago

I've got a textbox that is used to convey the browser type to the next
page, and it is invisible in every other browser, but on Safari for
the Mac it draws a boundary around it. I've tried visible='false' but
then I can't put text in it. Does anyone know know I can get this to
not appear in Safari?

<asp:TextBox ID="tBrowser" runat="server" BackColor="Transparent"
BorderColor="Transparent" BorderStyle="None" ForeColor="White"
Width="6px" />
 
I've got a textbox that is used to convey the browser type to the next
page, and it is invisible in every other browser, but on Safari for
the Mac it draws a boundary around it. I've tried visible='false' but
then I can't put text in it. Does anyone know know I can get this to
not appear in Safari?

<asp:TextBox ID="tBrowser" runat="server" BackColor="Transparent"
BorderColor="Transparent" BorderStyle="None" ForeColor="White"
Width="6px" />

As an aside ... wouldn't it be better to get the browser using the
Request.Browser object? This would eliminate your problem because you
won't need the textbox any more
 
you should use a hidden field rather than a textbox, it was designed for
this. set visible=false causes asp.net to not render the control. if you
insist on a textbox you can place it offscreen or using css set its
display:none.

-- bruce (sqlwork.com)
 
you should use a hidden field rather than a textbox, it was designed for
this. set visible=false causes asp.net to not render the control. if you
insist on a textbox you can place it offscreen or using css set its
display:none.

-- bruce (sqlwork.com)

Okay, thanks.
 
Back
Top