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" />
Rad [Visual C# MVP] - 18 Oct 2007 10:52 GMT
>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
[quoted text clipped - 5 lines]
>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
--
http://bytes.thinkersroom.com
bruce barker - 18 Oct 2007 16:27 GMT
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)
> 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
[quoted text clipped - 5 lines]
> BorderColor="Transparent" BorderStyle="None" ForeColor="White"
> Width="6px" />
ProgrammerChicago@gmail.com - 25 Oct 2007 15:57 GMT
> 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
[quoted text clipped - 13 lines]
> > BorderColor="Transparent" BorderStyle="None" ForeColor="White"
> > Width="6px" />
Okay, thanks.