• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Andy Miller
#1 Posted : Friday, August 15, 2008 1:22:25 PM(UTC)
Andy Miller

Rank: Member

Joined: 11/5/2003(UTC)
Posts: 2,136

Was thanked: 1 time(s) in 1 post(s)
I had no idea ASP.NET could do this,




Code:

&lt;<SPAN style="COLOR: rgb(128,0,0)">asp:Label<SPAN style="COLOR: rgb(255,0,0)"> runat=<SPAN style="COLOR: rgb(0,0,255)">"server"<SPAN style="COLOR: rgb(255,0,0)"> ID=<SPAN style="COLOR: rgb(0,0,255)">"labelText"
<SPAN style="COLOR: rgb(255,0,0)"> ie:Text=<SPAN style="COLOR: rgb(0,0,255)">"This is IE text"
<SPAN style="COLOR: rgb(255,0,0)"> mozilla:Text=<SPAN style="COLOR: rgb(0,0,255)">"This is Firefox text"
<SPAN style="COLOR: rgb(255,0,0)"> Text=<SPAN style="COLOR: rgb(0,0,255)">"This is general text"
/&gt;


This will render "This is IE text" to Internet Explorer, "This is Firefox text" to Mozilla browsers, and "This is general text" to all other browsers.



Cool!
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
Cliff
#2 Posted : Friday, August 15, 2008 5:50:29 PM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

Wow, I had no clue, either. Very nice.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012