sqldatasource get value back

G

Ganesh

Hi There,

I've asp.net 2.0, sqldatasource i've a select statement it will return just
one record contains 5 fields. How can i get the field values back from
sqldatasource

Thanks
 
B

Brandon Gano

What are you trying to do with the values? SqlDataSource is used to bind
data to controls (GridView, DropDownList, etc.). If you just want to perform
a query and use the data in your code, you want to use a SqlDataReader
instead.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,607
Members
45,241
Latest member
Lisa1997

Latest Threads

Top