[Mono-list] DataBinding

Daniel Morgan danmorg@sc.rr.com
Thu, 1 May 2003 11:37:11 -0400


By the way, Mono's System.Data.SqlClient does not support trusted
connections aka integrated security.  When connecting to a Microsoft SQL
Server, you must specify User ID and Password.

Here is an example connection string:
"Server=MYSERVER;Database=mydb;User ID=myuser;Password=mypass"

You would set it like:

string constr =
	"Server=MYSERVER;" +
	"Database=mydb;" +
	"User ID=myuser;" +
	"Password=mypass";
IDbConnection dbcon;

// create your connection object somehow
// this is just an example
dbcon = (IDbConnection) System.Data.SqlConnection();

dbcon.ConnectionString = constr;

dbcon.Open();


-----Original Message-----
From: mono-list-admin@lists.ximian.com
[mailto:mono-list-admin@lists.ximian.com]On Behalf Of Gonzalo Paniagua
Javier
Sent: Thursday, May 01, 2003 11:25 AM
To: mono-list@lists.ximian.com
Subject: Re: [Mono-list] DataBinding


El jue, 01 de 05 de 2003 a las 02:51, Jones, Larry escribió:
> I got a test MS Sql access going in an ASP.NET (.aspx) page by doing
> response.writes.  But when I tried to DataBind it to a DataList or
Datagrid,
> it would fail or hang.  I could run the exact same program on a IIS 5.0
> Server with the same Sql Data base accessed and it runs fine.  So
something
> is wrong with the .aspx DataBinding.

No. Mono's ASP.NET databinding is fine.

May be you have a problem with the connection to the DB not being
established or stuff like that.

-Gonzalo


_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-list