M
Marcus Olsson
Hi!
I've created an ordinary Win App and placed the following
code under a button:
=========================================
string sConnString = "Dsn=Bokning_new";
OdbcConnection oODBCConnection = new OdbcConnection();
oODBCConnection.ConnectionString = sConnString;
oODBCConnection.Open();
DataSet ds = new DataSet("myDataSet");
OdbcDataAdapter sqlDA = new OdbcDataAdapter("select *
from Bokning", oODBCConnection);
sqlDA.Fill(ds, "Bokning");
=========================================
and it works, but if I place it in an ASP.NET page it
crashes when I do the ".Fill". It says that "Connection
failed" (but in swedish).
Please help me to solve this! Why does it work in an
ordinary app and not in ASP? Is there a way to solve it?
I badly need to get data from this Filemaker DB from
ASP.NET.
Regards,
/Marcus
I've created an ordinary Win App and placed the following
code under a button:
=========================================
string sConnString = "Dsn=Bokning_new";
OdbcConnection oODBCConnection = new OdbcConnection();
oODBCConnection.ConnectionString = sConnString;
oODBCConnection.Open();
DataSet ds = new DataSet("myDataSet");
OdbcDataAdapter sqlDA = new OdbcDataAdapter("select *
from Bokning", oODBCConnection);
sqlDA.Fill(ds, "Bokning");
=========================================
and it works, but if I place it in an ASP.NET page it
crashes when I do the ".Fill". It says that "Connection
failed" (but in swedish).
Please help me to solve this! Why does it work in an
ordinary app and not in ASP? Is there a way to solve it?
I badly need to get data from this Filemaker DB from
ASP.NET.
Regards,
/Marcus