Last post Jan 17, 2011 04:50 PM by PeteNet
Jan 17, 2011 04:32 PM|ameanberg|LINK
It seems really easy to output a sqldatasource into a table but really hard to output a sqldatasource into a variable. Any suggestions?
Jan 17, 2011 04:49 PM|rivdiv|LINK
This might help: Bind Data From a SqlDataSource to a Label
Jan 17, 2011 04:50 PM|PeteNet|LINK
you could use its Select method to return a DataView, if you have to (but so could you also use a SqlCommand with its ExecuteScalar method)
Here's an example with a SqlDataSource: http://www.mikesdotnetting.com/Article/64/Bind-Data-From-a-SqlDataSource-to-a-Label