E
Engwar
I'm just getting started with asp.net using C# and I'm attempting to
connect to a mySQL database.
I can do so using some C# code I've found on the web for a console
application. It works successfully and returns my data. However, when
I attempt to adapt that code for use in an asp.net page I get a
compilation error when trying to import the following.
Import Namespace="Microsoft.Data.Odbc"
Since it works as a console app as "using Microsoft.Data.Odbc;" but
not as an asp.net page with "Import" I would think I don't have IIS
configured properly? Am I correct? What do I do to fix this?
I can post more code if need be but it's choking on that Import
statement.
Thanks.
connect to a mySQL database.
I can do so using some C# code I've found on the web for a console
application. It works successfully and returns my data. However, when
I attempt to adapt that code for use in an asp.net page I get a
compilation error when trying to import the following.
Import Namespace="Microsoft.Data.Odbc"
Since it works as a console app as "using Microsoft.Data.Odbc;" but
not as an asp.net page with "Import" I would think I don't have IIS
configured properly? Am I correct? What do I do to fix this?
I can post more code if need be but it's choking on that Import
statement.
Thanks.