Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Transparent Textbox Visible in Safari

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ProgrammerChicago@gmail.com - 17 Oct 2007 21:25 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
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.