- Apr 16, 2005
- 2,569
- 2
- 81
So basically, I am translating a bunch of asp programs to asp.net, and I think I have figured pretty much everything out except for how to replace these ADODB Recordsets with something inherently supported in the .Net framework, datasets I suppose. I have been looking at this for hours and for some reason I just can't get it to work out, even with the help of some online tutorials.
Here is the original code, if you guys could point me in the right direction I'd appreciate it
I suppose I should add that I have imported the ADODB namespace, and that lets the page load but everywhere that it would normally have content displayed it says system.__ComObject instead.
Here is the original code, if you guys could point me in the right direction I'd appreciate it
Code:
rsTeil = Server.CreateObject("ADODB.RecordSet")
qryTeil = "select * from teil where teteil=" & teil
rsTeil.Open(qryTeil, dbConn)
If Not rsTeil.EOF Then
teteilnr = rsTeil("teteilnr")
tebezeich = rsTeil("tebezeich")
End If
partNum = teteilnr
partDesc = tebezeich
rsChartInfo = Server.CreateObject("ADODB.RecordSet")
qryChartInfo = "select * from tFMKChart where iChartID=" & iChartID
rsChartInfo.Open(qryChartInfo, dbConn)
If Not rsChartInfo.EOF Then
chartID = rsChartInfo("vcChartID")
chartDesc = rsChartInfo("vcChartDesc")
chInterval = rsChartInfo("chInterval")
dtdateFrom = rsChartInfo("dtDateFrom")
dtdateTo = rsChartInfo("dtDateTo")
scope = rsChartInfo("vcChartScope")
lastN = rsChartInfo("iLastN")
End If
I suppose I should add that I have imported the ADODB namespace, and that lets the page load but everywhere that it would normally have content displayed it says system.__ComObject instead.
Last edited:
