Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: "Could not find installable ISAM"


Message #1 by Michael Foots <foots131@c...> on Tue, 22 Oct 2002 22:50:58 -0500
I need some help. I am testing the "try outs" in Chapter 2 of Beginning
ASP.NET 1.0 with C#. I get this error message "Could not find installable
ISAM" when I view the following code:

<%@ Page Language="C#" Debug="true" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.OleDb" %>
<script language="c#" runat="server">
void Page_Load(object sender, EventArgs e)
{
    OleDbConnection objConnection;
    OleDbDataAdapter objCommand;
    string strConnect;
    string strCommand;
    DataSet DataSet1 = new DataSet();

    strConnect = @"Provider=Microsoft.Jet.OLEDB.4.0;";

    strConnect += @"C:\Documents\BegASPNET\Ch01";
    strConnect += @"\grocertogo.mdb;";

    strConnect += "Persist Security Info=False";

    strCommand = "SELECT ProductName, UnitPrice FROM Products";
    objConnection = new OleDbConnection(strConnect);
    objCommand = new OleDbDataAdapter(strCommand, objConnection);
    objCommand.Fill(DataSet1, "Products");
    DataGrid1.DataSource=DataSet1.Tables["Products"].DefaultView;
    DataGrid1.DataBind();
}
</script>

<html>
<head>
<title>Data Grid Control Example</title>
</head>

<body>
    <asp:DataGrid id="DataGrid1" runat="server" />
</body>
</html>


Thanks in advance for any help I can get.

Mike

Message #2 by "Michael Foots" <foots131@c...> on Wed, 23 Oct 2002 05:31:59
I found the problem in my connection string. Help no longer needed for now.

Mike

  Return to Index