I have a simple links database and a table with 1 record in it.
i just want to display the record but i got this error:
Response object error 'ASP 0185 : 8002000e'
Missing Default Property
/links.asp, line 0
A default property was not found for the object.
here is my code:
<%
Dim cnnEditor
Dim strDBPath
Dim rstContent
strDBPath = Server.MapPath("/db/links.mdb")
Set cnnEditor = Server.CreateObject("ADODB.Connection")
cnnEditor.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & ";"
Set rstCont = cnnEditor.Execute("SELECT * FROM links")
%>
<html>
<head>
<title> Links </title>
</head>
<body>
<%= rstCont %>
</body>
</html>
<%
rstContent.Close
Set rstContent = Nothing
cnnEditor.Close
Set cnnEditor = Nothing
%>
i just want to display the record but i got this error:
Response object error 'ASP 0185 : 8002000e'
Missing Default Property
/links.asp, line 0
A default property was not found for the object.
here is my code:
<%
Dim cnnEditor
Dim strDBPath
Dim rstContent
strDBPath = Server.MapPath("/db/links.mdb")
Set cnnEditor = Server.CreateObject("ADODB.Connection")
cnnEditor.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strDBPath & ";"
Set rstCont = cnnEditor.Execute("SELECT * FROM links")
%>
<html>
<head>
<title> Links </title>
</head>
<body>
<%= rstCont %>
</body>
</html>
<%
rstContent.Close
Set rstContent = Nothing
cnnEditor.Close
Set cnnEditor = Nothing
%>