Re: Equivalent of Tag on Label

"Pardee, Roy" <[email protected]> Fri, 27 Jul 2007 13:44:04 -0700
Newsgroups gmane.comp.windows.devel.dotnet.web
Message-ID <[email protected]>
And give your attribute a better name than 'Tag'. ;-) 

-----Original Message-----
From: Discussion of building .NET applications targeted for the Web
[mailto:[email protected]] On Behalf Of Brady Kelly
Sent: Friday, July 27, 2007 7:22 AM
To: [email protected]
Subject: Re: [DOTNET-WEB] Equivalent of Tag on Label

It seems the attributes collection is the way to go.  Thanks to all that
responded.

> -----Original Message-----
> From: Discussion of building .NET applications targeted for the Web 
> [mailto:[email protected]] On Behalf Of Mike Andrews
> Sent: 27 July 2007 16:15 PM
> To: [email protected]
> Subject: Re: [DOTNET-WEB] Equivalent of Tag on Label
>
> I would recommend if you use the attributes collection of the control 
> to keep your data small.
>
> On 7/27/07, Adrian Martin <[email protected]> wrote:
> >
> > Add you data via the Attribute collection
> >
> >
> > yourLabel.Attributes["tag"] = "stringdata" ;
> >
> >
> >
> >
> >
> >
> >
> >
> > -----Original Message-----
> > From: Discussion of building .NET applications targeted for the Web 
> > [mailto:[email protected]] On Behalf Of Brady Kelly
> > Sent: 27 July 2007 09:11
> > To: [email protected]
> > Subject: Equivalent of Tag on Label
> >
> > How could I emulate storing meta data for a Label control in its Tag

> > property, as with WinForms Label control?  I want to store a lot
> number
> > associated with a label on that label, so when I iterate a data 
> > collection, I can access data for a label by its 'tag' property.
> >
> >
> > ===================================
> > This list is hosted by DevelopMentor(r)  http://www.develop.com
> >
> > View archives and manage your subscription(s) at 
> > http://discuss.develop.com
> >
> >
> > Johnston Press plc      Registered in Scotland no.
> > SC015382        Registered Office: 53 Manor Place, Edinburgh, EH3
7EG
> >
> > Opinions expressed in this email are those of the writer and not the

> > company.  E-mail traffic is monitored within Johnston Press and
> messages may
> > be viewed.  This e-mail and any files with it are solely for the use
> of the
> > addressee(s).  If you are not the intended recipient, you have
> received this
> > e-mail in error.  Please delete it or return it to the sender or
> notify us
> > by email at [email protected]
> >
> > ===================================
> > This list is hosted by DevelopMentor(r)  http://www.develop.com
> >
> > View archives and manage your subscription(s) at 
> > http://discuss.develop.com
> >
>
> ===================================
> This list is hosted by DevelopMentorR  http://www.develop.com
>
> View archives and manage your subscription(s) at 
> http://discuss.develop.com

===================================
This list is hosted by DevelopMentor(r)  http://www.develop.com

View archives and manage your subscription(s) at
http://discuss.develop.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com