Slowly trying to get to grips with visual studio and the Ibuyspy portal, have changed the event module but now when i try and rebuild the project i get the following errors:
C:\Inetpub\wwwroot\Components\EventsDB.vb(37): Type 'Database' is not defined. The line it refers to is between tht *:
Public Function GetSingleEvent(ByVal moduleId As Integer, _
ByVal itemId As Integer) _
As SqlDataReader
' Create Instance of Database Object
**** Dim dataCon As New Database() ****
Dim params(1) As SqlParameter
params(0) = dataCon.MakeParameter("@ItemID", SqlDbType.Int, 4, itemId)
params(1) = dataCon.MakeParameter("@ModuleID", SqlDbType.Int, 4, moduleId)
Dim result As SqlDataReader
dataCon.RunProcedure("up_Events_GetSingleEvent", params, result)
' Return the datareader
Return result
End Function
Would be grateful if someone could explain this to me,
Thanks in advance