I want to Declear a variable as SqlDataReader in ASP 2.0. But when i do so it
tells me SqlDataReader is not define. This same code works in my previous
application in ASP 1.0. Has this change? Can someone show me how to do this.
Below is the function and the line of the error is bold.
Function GetUniversity() As String
Dim Unipayment As New UnipaymentDB
Dim CIDR As SqlDataReader =
Unipayment.StudentState(Request.Params("StudentID" ))
'Intilize university name depending on courseID
GetUniversity = ""
If CIDR.Read Then
If CIDR("CourseID") = "CMS" Or CIDR("CouresID") =
"DMS" Or CIDR("CourseID") = "MBA" Then
GetUniversity = "University of Leicester"
Else
GetUniversity = "London Metropolitan
University"
End If
CIDR.close()
End If
End Function