How select query in dataset?

V

VB Programmer

Using ASP.NET 2.0...

I have a DataSet1.xsd dataset (MyDs) I created. I have 1 simple SELECT
query called GetData (in MyDsTableAdapter).

How do I fill a new dataset using GetData?

I tried this, but it doesn't work...

Dim ds as new system.data.dataset
ds = MyDsTableAdapter.GetData

Any ideas? Thanks.
 
V

VB Programmer

Never mind. I used the OBJECTDATASOURCE and it worked:

Dim ds As New System.Data.DataView

ds = Me.ObjectDataSource1.Select



Thanks!
 

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

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,277
Latest member
VytoKetoReview

Latest Threads

Top