Code from tutorial doesn't work? Using ADODat

xunwg1

New Member
Here's the problem code in my ASP.NET page:<BR><BR> Dim myDataSet As DataSet<BR> myDataSet = New Dataset<BR> Dim myDataSetCommand As ADODatasetCommand<BR> myDataSetCommand = New ADODatasetCommand( _<BR> "SELECT * FROM MyDB_Members", _<BR> "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _ <BR> "\premfs2sitespremium7usernamedatabaseMyDB.mdb;" & _ <BR> "Persist Security Info=False;")<BR><BR><BR>When I run the page I get:<BR>Type 'ADODatasetCommand' is not defined.<BR><BR>I included the System.Data and System.Data.ADO Namespaces. Yet it doesn't seem to be recognizing ADO here. Any ideas on what could be the problem?<BR><BR>I'm copying this straight from an article here on this site, yet I just changed the variable names.That that code has been valid since Beta 1. I know that I don't even *have* a System.Data.ADO namespace in the V1 framework.
 
Back
Top