Groups | Blog | Home
all groups > dotnet ado.net > september 2007 >

dotnet ado.net : Strongly typed dataset problem in a mobile form


Tony Staker
9/28/2007 4:13:35 PM
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?
--
Best regards,
Tony Staker
MCP

Tony Staker
9/28/2007 4:48:14 PM
Please disregard, I was using the CE edition of SQL Server as the data
source rather then the database file. A very silly mistake.

--
Best regards,
Tony Staker
MCP


[quoted text, click to view]

AddThis Social Bookmark Button