Strongly typed dataset problem in a mobile form

T

Tony Staker

I'm new to mobile app development so I'm going through Glen Gordon's
on-demand webcast series "Mobile Web Development with ASP.Net 2.0" Using
VS2005 I created a mobile app, a connection to Northwind and a dataset named
"Orders". Then in a button click code block:

dim ta as new OrdersTableAdapters.OrdersTableAdapters()
dim dt as new Orders.OrdersDataTable
......

This is just as Glen has it in the demo.VS2005 gives me "Type
orderstableadapters is not defined". It's as if my mobile form does not
'see' the dataset.In Glen's demo he is able to fill an object list from the
orders table in Northwind

In asp.net I've used datasets and tableadapters before with success.
Suspecting that VS is broken I try this
(dataset named northwindDS)
Dim tblOrders As New northwindDSTableAdapters.OrdersTableAdapter()
Dim dt As New northwindDS.OrdersDataTable
tblOrders.Fill(dt, TextBox1.Text)
GridView1.DataSource = dt
GridView1.DataBind()

And all works fine, so what gives?
 
T

Tony Staker

Please disregard, I was using the CE edition of SQL Server as the data
source rather then the database file. A very silly mistake.
 

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

Top