Re: Equivalent of Tag on Label
Ryan Heath <[email protected]> Sat, 28 Jul 2007 13:17:59 +0200
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Message-ID | <[email protected]> |
Of course it depends on how you are using the attributes. I was thinking along setting the values at runtime. But now you mention "declarative", I wonder how you use them. Do you look up the attribute value during the page request? Do you loop your labels and based on their attributes do something? If so it will work, of course, but, and I don't want to sound like a purist, attributes aren't supposed to be used for that purpose. The attributes are rendered on the client. I would rather not have application specific values rendered on the client... I would, if I really had no other option, derive a class from Label, define a public property on it for that very purpose. Then I would be able to specify its value declaratively and have strong relationship with it in code, without possibly interfere with the attributes, or future defined attributes. // Ryan =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com