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.
Home / FAQ / ASP.NET / Error Handling / Why am I getting the error: ‘Type ‘(OleDb or SQL)Connection’ is not defined.’
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.
Share with