I set up the MySQL tables and inserted a test row to try and get them synching.
I've been told that it is possible to use OleDb connections to access MySQL.
All I want to do is get a DataGrid to display what is in the Suppliers table.
Here's my Code:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string strCon;
strCon = "Provider=MySQLProv;" +
"Data Source=afp;" +
"Initial Catalog=Suppliers;";
OleDbConnection conn = new OleDbConnection(strCon);
conn.Open();
DataGrid1.DataBind();
conn.Close();
}
}
The error it gives me is that MySQLProv is, "not registered on the local machine."
Any pointers would be really great!
Thanks!

New Topic/Question
Reply



MultiQuote




|