You don't have to have DataSource in order to databind. All you need is to
use a databind expression for any of the control's properties. Example:
<asp:label ... Text='<%# CurrentDateString %>' ...
where CurrentDateString is a property you are binding your Text property to.
To get Text actually populated, you need to call the DataBind method.
Eliyahu
"Roy" <SP*******@gmail.com> wrote in message
news:ul**************@TK2MSFTNGP09.phx.gbl...
This may seem silly, but I'm just curious...
I've noticed that in the code-behind, asp:Label has the .DataBind
property yet has NO corresponding .DataSource property? Am I missing
something? How can you databind something that has no datasource?
Thanks
*** Sent via Developersdex http://www.developersdex.com ***