Re: Label Text

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: MrMike (MrMike_at_discussions.microsoft.com)
Date: 12/02/04


Date: Thu, 2 Dec 2004 13:57:01 -0800

Ken, Unfortunately not. Thanks for your help, though.

"Ken Cox [Microsoft MVP]" wrote:

> Hi,
>
> Try this?
>
> <asp:Label runat="server" Text='<%#
> [String].Concat("The identification number is ", DataBinder.Eval(Container,
> "DataItem.ID"),".") %>'>
> </asp:label>
>
> Ken
> MVP [ASP.NET]
>
> "MrMike" <MrMike@discussions.microsoft.com> wrote in message
> news:126B5C71-F085-4B23-8E82-0F541D149FAD@microsoft.com...
> > How can the text property of the label web server control be formatted to
> > display more than one piece of text. For exmaple - I currently have the
> > below code. Currently this will just display the "ID" dataitem, but I
> > want
> > it to say "The identification number is "ID"". How would I do this?
> >
> > CODE...
> > Text='<%#DataBinder.Eval(Container.DataItem, "ID") %>'
>
>