shmoel
asked on
ASP. Response Object,80020003. Missing Default Property~0185~
Please tell me what could be wrong with the following. It returns an following error message:
Response object, 8002003, ASP 0185~Missing Default Property~A default property was not found for the object.
I am using MySQL as you can see and it works fine on my local machine, but not on with database on hosting server wich is the same - MySQL.
If you can think of any solution, I'd appreciate it. Thanks.
_______________________cod e_________ __________ ________
<%
dim conn,rs,x
set conn=Server.CreateObject(' ADODB.Conn ection')
set rs=Server.CreateObject('AD ODB.Record set')
conn.open 'Driver={mySQL ODBC 3.51 Driver};Server=localhost;d atabase=Na me; password=****** ; uid=Bluh'
rs.open 'SELECT * FROM Person Where Active=0 Order By LastLogin; ', conn
%>
..........
..........
<%
for each x in rs.Fields
response.write('<th>' & ucase(x.name) & '</th>')
next
%>
</tr>
<%do until rs.EOF%>
Response object, 8002003, ASP 0185~Missing Default Property~A default property was not found for the object.
I am using MySQL as you can see and it works fine on my local machine, but not on with database on hosting server wich is the same - MySQL.
If you can think of any solution, I'd appreciate it. Thanks.
_______________________cod
<%
dim conn,rs,x
set conn=Server.CreateObject('
set rs=Server.CreateObject('AD
conn.open 'Driver={mySQL ODBC 3.51 Driver};Server=localhost;d
rs.open 'SELECT * FROM Person Where Active=0 Order By LastLogin; ', conn
%>
..........
..........
<%
for each x in rs.Fields
response.write('<th>' & ucase(x.name) & '</th>')
next
%>
</tr>
<%do until rs.EOF%>
Give this a shot:
rs.open "SELECT * FROM Person Where Active=0 Order By LastLogin;",conn,3,3
do while not rs.eof
for each x in rs.Fields
response.write("<th>" & ucase(x.name) & "</th>")
next
loop
FtB
rs.open "SELECT * FROM Person Where Active=0 Order By LastLogin;",conn,3,3
do while not rs.eof
for each x in rs.Fields
response.write("<th>" & ucase(x.name) & "</th>")
next
loop
FtB
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Which may be the case when using ' as a delimiter instead of "
FtB
FtB
ASKER
I think I found the reason - link provided by FtB was very helpfull.
Thank you.
I got connected to my DB, but I am still not sure how would I split my x.name and x.value. I am getting in both- heading and body of my result table only field names. Well, thanks to everybody anyway.
Thank you.
I got connected to my DB, but I am still not sure how would I split my x.name and x.value. I am getting in both- heading and body of my result table only field names. Well, thanks to everybody anyway.
I don't understand the last part, what do you need to do?
FtB
FtB
I am totally confused now--what solved the problem?
FtB
FtB
for each x in rs.Fields
response.write("<th>" & ucase(x.name) & "</th>")
next
Cheers!!