Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordsets from ASP to ASP.NET 1

Status
Not open for further replies.

oldwen

Programmer
Dec 2, 2003
23
US
Hello all,

I need some expertise here. I am trying to learn this .NET stuff and I am confused about recordsets. Traditionally I would use a recordset like this....
Dim objComm, objComm2
Set objComm = Server.CreateObject("ADODB.Command")
Set objComm2 = Server.CreateObject("ADODB.Command")
objComm.ActiveConnection = strConnect
objComm2.ActiveConnection =strConnect
objComm.CommandText = Orlando
objComm.Execute
Set objComm = Nothing

I have not been able to identify how to accomplish this same thing using .NET. I have read some about datareader and dataset, but I am still confused. Can anyone give me some insight?

Oldwen
 
Some places to start:



The basic paradigm is still the same. You still need a connection, a command, and a target datasource. What has been added is the dataadapter, which you only need when populating a datatable and/or dataset.

I also invite you to check out Microsoft's application blocks, which abstract alot of the plumbing details from you:


Post back with specific questions if anything is unclear.

-p

penny.gif
penny.gif

The answer to getting answered -- faq855-2992
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top