[Mono-dev] help with mysql connection

danilo danilo at tau.org.ar
Sat Jan 28 09:58:29 EST 2006


I am trying to connect to Mysql from an example running under xsp2

here is my code:

<%@ Page Language="C#" %>
<%@ Import Namespace="System" %>

<%@ Import Namespace="System.Data" %>

<%@ Import Namespace="System.Data.Odbc" %>

<head runat="server">
  <title>GridView Bound to SqlDataSource</title>
  <form id="form1" runat="server">
    <asp:GridView ID="GridView1" DataSourceID="SqlDataSource1"
runat="server" />
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"   
     ConnectionString="DRIVER={MySQL ODBC

      ProviderName="System.Data.Odbc" SelectCommand="XXXXXXXXXXXXXXXXXX">


I am having this error:

System.ArgumentException: Keyword not supported :DRIVER

I have been looking for a solution in google for some  days  and  I
couldn't  find anything.

Can someone help me ?

Thanks in advance !

More information about the Mono-devel-list mailing list