I use this Connection Code to insert, update & delete the content
Dim constr As String = "Provider=Microsoft.Jet.Oledb.4.0;Data Source=" & Server.MapPath("../databasename.mdb;")& "Jet OLEDB:Database Password=mypassword;"
Which Work Fine,
Now when I Load the Data into Some Page from Database, the Webpage Display Error & Redirect to Error Page.
For Load Data I use Following code :
<asp:AccessDataSource ID="ADSource" runat="server" DataFile="~/databasename.mdb" SelectCommand="SELECT * FROM [Table]"></asp:AccessDataSource>
1) Why, Its because I didn't add password into above code? If Yes, How to Add Password into Above Code?
2) How to Set above Connection Code into Web.config & Use it into Webpage?