R
Roy Lawson
I have no idea what is going on here. I wrote a simple application in
VB.NET to generate a Crystal Report, and I am now trying to move it to
ASP.NET with Crstal Enterprise. I wish I could tell you how the
report works...but I can't even get past connecting to the database

I use the typical:
Dim oConnection As New SqlConnection(strCon)
Dim cmdText As String = "SELECT * FROM viewLogin WHERE " & _
viewLogin.username = '" & strLogin & "' AND viewLogin.password
" & _
= '" & strPW & "' AND viewLogin.company_cd = '" & strProperty
& "'"
Dim oDataAdapter As New SqlDataAdapter(cmdText, oConnection)
Dim oDS As New Data.DataSet()
oDataAdapter.SelectCommand.CommandText = cmdText
oConnection.Open() '### Error occurs here during debug
oDataAdapter.Fill(oDS, "viewLogin")
oConnection.Close()
So, why does this work in VB.NET on the same system/IDE and not in
ASP.NET?
VB.NET to generate a Crystal Report, and I am now trying to move it to
ASP.NET with Crstal Enterprise. I wish I could tell you how the
report works...but I can't even get past connecting to the database
I use the typical:
Dim oConnection As New SqlConnection(strCon)
Dim cmdText As String = "SELECT * FROM viewLogin WHERE " & _
viewLogin.username = '" & strLogin & "' AND viewLogin.password
" & _
= '" & strPW & "' AND viewLogin.company_cd = '" & strProperty
& "'"
Dim oDataAdapter As New SqlDataAdapter(cmdText, oConnection)
Dim oDS As New Data.DataSet()
oDataAdapter.SelectCommand.CommandText = cmdText
oConnection.Open() '### Error occurs here during debug
oDataAdapter.Fill(oDS, "viewLogin")
oConnection.Close()
So, why does this work in VB.NET on the same system/IDE and not in
ASP.NET?