I received these two errors: 'Sqlhelper not declared' and 'referenced component Microsoft.ApplicationBlocks.Data not found' for the code below. What do I need to correct these errors.
Imports Microsoft.ApplicationBlocks.Data
Imports System.Configuration.ConfigurationSettings
Namespace AFA.Data
Public Class Sql
Public Shared Function GetMemberByUsernamePassword(ByVal username As String, ByVal password As String)
Return SqlHelper.ExecuteScalar(AppSettings("Connection"), CommandType.StoredProcedure, "GetMemberByUsernamePassword", username, password)
End Function
Public Shared Function GetContentByContentId(ByVal contentId As Integer) As SqlClient.SqlDataReader
Return SqlHelper.ExecuteReader(AppSettings("Connection"), "PCMS_GetContentById", contentId)
End Function
Public Shared Function PerformSearch(ByVal search As String) As DataSet
Return SqlHelper.ExecuteDataset(AppSettings("Connection"), "PCMS_FreeText", search)
End Function
End Class
Public Class Forms
End Class
End Namespace