i have just produced a simple access connection and a simple DataAdaptor and Dataset to get the relevant information pasted into the gridview.
The only issue i am getting is it says no errors but brings up this message and it does not run properly:
"An OLE DB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'."
Here is my code :
public partial class Database : System.Web.UI.Page
{
public OleDbConnection cn=new OleDbConnection(@"Data Source =Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\jSte\Desktop\database_1.mdb; Integrated Security=true; User Instance =true");
protected void Page_Load(object sender, EventArgs e)
{
OleDbDataAdapter ad = new OleDbDataAdapter ("SELECT * from CustomerDetails", cn);
DataSet ds = new DataSet();
ad.Fill(ds);
GridView1.DataSource = ds;
GridView1.DataBind();
}