OK, first of all I am new to the .NET world to forgive me.
I come from a VB6 environment.
I am trying to get into .NET by building a simple web application that connects to an access database. I cant believe how much different VB6 code is from .NET code. heres what i have got so far.
Dim cn As OleDb.OleDbConnection
Dim rs as OleDb.OleDbCommand
cn = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OlEDB.4.0;Data Source=C:\Database.mdb"
cn.Open
rs = New OleDb.OleDbCommand("SELECT * FROM Table", cn)
Now how do I use BOF and EOF ??
Also I want to put textboxes on the form that show the data.
the VB6 Way is Text1.Text = rs.Fields("FieldName" & ""
how the hell do you do this in .NET??
does ASP.NET and VB.NET have different commands as well??
theres no good help with this that I can find.. what am i doing wrong??
any help or feedback would be appreciated
Thanks
I come from a VB6 environment.
I am trying to get into .NET by building a simple web application that connects to an access database. I cant believe how much different VB6 code is from .NET code. heres what i have got so far.
Dim cn As OleDb.OleDbConnection
Dim rs as OleDb.OleDbCommand
cn = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OlEDB.4.0;Data Source=C:\Database.mdb"
cn.Open
rs = New OleDb.OleDbCommand("SELECT * FROM Table", cn)
Now how do I use BOF and EOF ??
Also I want to put textboxes on the form that show the data.
the VB6 Way is Text1.Text = rs.Fields("FieldName" & ""
how the hell do you do this in .NET??
does ASP.NET and VB.NET have different commands as well??
theres no good help with this that I can find.. what am i doing wrong??
any help or feedback would be appreciated
Thanks