I tried to select a specific value from database by using this code:
Dim rs, data, lo
data = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & _
Server.MapPath("games.mdb")
rs = Server.CreateObject("ADODB.Recordset")
rs.open("select * FROM [index] where ID1=1 ", data)
Image1.ImageUrl = "images/" + rs("url").ToString
lo =rs("url")
rs.MoveNext()
rs.Close()
When I run it, I get:
show
System.__ComObject
The problem is that you are trying to use COM objects when in fact you should be using native System.Data.OleDb classes.
Based on the example that Microsoft provides, here is a rewrite of your code using native classes: