In ASP.NET 2.0 you can now apparently do this:
<asp:label runat="server" text="some browser" IE:text="any IE browser"
IE5:text="the IE 5 browser" PIE:text="the Pocket PC browser" />
Now the tokens "IE5" and "PIE" are coming from the updated browser
capabilities component.
I'd like to do the same thing, but create my own tokens that have nothing to
do with the browser capabilities component because I love the convenience
this offers.
For example I'd like to do this:
<asp:label runat="server" text="my val" Foo:text="val when Foo"
Bar:text="value when bar" />
or even this:
<asp:label runat="server" text="some browser"
Condition==True:text="condition is true" Condition==False:text="condition
is false" />
So in summary, is this possible out of the box in asp.net 2.0? If not, is
it possible to extend the asp:label (or other such controls) somehow to
support this conditional assignment of a propery?
Obviously the updated browser capabilities control does this, so it must be
possible somehow. I guess the question is whether this support is hard coded
into the asp.net framework specific to the browser control, or whether this
is an open architecture that somehow I can tap into to do the same thing.
Any advice would be greatly appreciated! Thanks!!
Steve