Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 21st, 2006, 03:59 AM
Registered User
 
Join Date: Jan 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default DataGrid with access connection

I have placed a datagrid on my form...and i have written the following code on pageload event...

 Dim strconn As String = "Provider=Microsoft.Jet.OLEDB.4.0;datasource=D:\vb .net\db1.mdb"
 Dim strsql As String = "SELECT * FROM cust_details"

  Dim dbconn As New OleDb.OleDbConnection(strconn)
  Dim cmd As New OleDb.OleDbCommand(strsql, dbconn)
  dbconn.Open()

DataGrid1.DataSource = cmd.ExecuteReader(CommandBehavior.CloseConnection)
DataGrid1.DataBind()

When i run this page i am getting the following error

"System.Data.OleDb.OleDbException: Could not find installable ISAM.
Its saying the database is closed
"

Pls do help me






Similar Threads
Thread Thread Starter Forum Replies Last Post
what is wrong with this access connection? method Access VBA 1 April 27th, 2005 01:38 PM
Connection DataGrid to Access database Rado C# 1 April 25th, 2005 04:59 AM
Access Database connection widad Classic ASP Databases 3 November 5th, 2004 05:24 AM
Can't get connection to MS Access pekj JSP Basics 1 June 1st, 2004 04:54 AM
Connection to a Access database aadz5 ASP.NET 1.0 and 1.1 Basics 2 October 13th, 2003 06:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.