Accessing Access :)

VivianPotthaste

New Member
How can I access Access Database from an ASPx page? Please supply me full codes because I fed up with half codes,<%@ Page Language="VB" %><BR><%@ Import Namespace="System.Data.OleDb" %><BR><BR><script runat="server"><BR><BR>Sub Page_Load(Sender As Object, E As EventArgs)<BR>Dim myConnection As OleDbConnection<BR>myConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:web databasesNorthwind.mdb;")<BR>myConnection.Open()<BR>ConnectionState.Text = myConnection.State.ToString()<BR>myConnection.Close()<BR>End Sub<BR><BR></script><BR><BR><html><BR><head><BR><title>Connection State</title><BR></head><BR><body><BR><H3>The database connection is:</H3><BR><form runat="server" method="post"><BR>Connection State: <asp:Label runat="server" id="ConnectionState" /><p> <BR><BR></form><BR></body><BR></html>
 
Back
Top