set label value in vb.net
Posted
by julio
on Stack Overflow
See other posts from Stack Overflow
or by julio
Published on 2010-06-02T00:35:50Z
Indexed on
2010/06/02
0:43 UTC
Read the original article
Hit count: 386
Hi-- I'm usually a PHP guy but got stuck doing a project in vb.net.
I have a query (sqldatasource) that returns a single value (the last update date).
I want to use a label to say something like "Last updated: " < Label = (returned value) >
In PHP this would be simple. In vb.net, all I can find are endless badly written code behinds showing how you'd execute the query onLoad then bind it to the label.
Is this really the only way to do this? It seems like a ridiculously simple problem to have such a long solution. I have used a datagrid control to just bind the query result directly, but it prints the column name as well as the date, so it's not ideal.
Any ideas?
© Stack Overflow or respective owner