dataset question

Results 1 to 2 of 2

Thread: dataset question

  1. #1
    Join Date
    Dec 1969

    Default dataset question

    I&#039;m trying to use the DataSet and continue to get this error.<BR>Ive tried both DataSet and OleDbDataSet and no luck..<BR><BR>// ERROR<BR>Compiler Error Message: BC30002: Type &#039;DataSet&#039; is not defined.<BR><BR>Source Error:<BR>Line 8: Dim strSelect As String<BR>Line 9: Dim oCmd As OleDbDataAdapter<BR>Line 10: Dim myDS As DataSet<BR><BR>// CODE<BR>&#060;%@Page Language="vb" debug="True" %&#062;<BR>&#060;%@Import Namespace="System.Data.OleDb" %&#062;<BR><BR>&#060;Script Runat="Server"&#062;<BR><BR>Sub Page_Load ( s As Object, e As EventArgs)<BR> Dim conn As OleDbConnection<BR> Dim strSelect As String<BR> Dim oCmd As OleDbDataAdapter<BR> Dim myDS As DataSet<BR> <BR> conn = New OleDbConnection("PROVIDER=Microsoft.Jet.OLEDB.4.0; DATA SOURCE=c:websites
    la_db2.mdb" )<BR> strSelect = "Select description, price From nlabritish_main" <BR> oCmd = New OleDbDataAdapter( strSelect, conn )<BR><BR>myDS = new DataSet();<BR> oCmd.Fill(myDS);<BR> conn.Close();<BR> <BR>End Sub<BR><BR> <BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: dataset question

    Add<BR>&#060;%@Import Namespace="System.Data" %&#062; <BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts