|
-
Mar 18th, 2007, 11:42 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] Extract data from SQLDataSource
I have created a SQLDataSource web server control, and i made a repeater and bound the source to the repeater. It works great.
I was wondering how you would go about extracting data from the SQLDataSource control using VB code. Without binding it to an object.
Example... say the DataSource control is getting all rows from a table. How would you access the data without binding it to a control?
Is there a control specifically for this purpose?
Cheers
-
Mar 18th, 2007, 09:47 PM
#2
Re: Extract data from SQLDataSource
I don't think you can extract it directly from the DataSource object itself.
The usual ways are filling DataSets or DataReaders.
Here's the msdn description of the Sql DataSource class: http://msdn2.microsoft.com/en-us/lib...atasource.aspx
HoraShadow
Last edited by HoraShadow; Mar 18th, 2007 at 09:51 PM.
I do like the reward system. If you find that my post was useful, rate it.
-
Mar 19th, 2007, 03:20 PM
#3
Thread Starter
Frenzied Member
Re: Extract data from SQLDataSource
yea didn't think so, I've done it using an SQLClient.
Cheers
-
Mar 21st, 2007, 03:12 PM
#4
Re: [RESOLVED] Extract data from SQLDataSource
SqlClient is the namespace. Namespaces don't actually do anything.
What class did you use within it?
-
Jun 18th, 2012, 10:46 AM
#5
Fanatic Member
Re: [RESOLVED] Extract data from SQLDataSource
so how is it resolved ? =/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|