Re: Label Text
From: MrMike (MrMike_at_discussions.microsoft.com)
Date: 12/02/04
- Next message: JC: "Save scroll position AND setFocus"
- Previous message: Ron Weldy: "Re: Trouble moving servers with asp.net"
- In reply to: Ken Cox [Microsoft MVP]: "Re: Label Text"
- Next in thread: Oleg Ogurok: "Re: Label Text"
- Reply: Oleg Ogurok: "Re: Label Text"
- Reply: Ken Cox [Microsoft MVP]: "Re: Label Text"
- Messages sorted by: [ date ] [ thread ]
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") %>'
>
>
- Next message: JC: "Save scroll position AND setFocus"
- Previous message: Ron Weldy: "Re: Trouble moving servers with asp.net"
- In reply to: Ken Cox [Microsoft MVP]: "Re: Label Text"
- Next in thread: Oleg Ogurok: "Re: Label Text"
- Reply: Oleg Ogurok: "Re: Label Text"
- Reply: Ken Cox [Microsoft MVP]: "Re: Label Text"
- Messages sorted by: [ date ] [ thread ]