what's the right way to bind sqldatasource to asp:label in asp.net 4.0?
Posted
by cskilbeck
on Stack Overflow
See other posts from Stack Overflow
or by cskilbeck
Published on 2010-05-30T10:01:16Z
Indexed on
2010/05/30
10:02 UTC
Read the original article
Hit count: 281
Is it possible using Eval? If so, can someone post a short fragment to illustrate? My SqlDataSource returns 1 record with 3 fields, I'd like to Format these into a string. eg:
Record Field 'Name' = 'Jack' Field 'Amount' = 100 Field 'Date' = 12.02.2010
asp:Label text should end up being:
Welcome Jack, last payment was 100 on 12.02.2010
if another control than asp:Label is appropriate, that would be good to know also.
© Stack Overflow or respective owner