Why am I getting the error: ‘Type ‘(OleDb or SQL)Connection’ is not defined.’

Platform: ASP.NET|Category: Error Handling

You get this error when you have not imported the following namespaces in your code in the aspx file:
System.Data.SqlClient or System.Data.OleDb.